Re: [RFC] [PATCH 2/2] cgroups: make procs file writable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Wednesday, June 2, 2010 - 7:06 am

On 06/01, Paul Menage wrote:

Yes,


Yes sure, I understand this part. cgroup_attach_task() correctly checks
PF_EXITING under task_lock(), this protects from the case when this
task has already passed cgroup_exit() which takes this lock too.

But. This exactly means that the PF_EXITING check in attach_task_by_pid()
is not necessary from the correctness pov (while probably can be considered
as optimization), right?

And,


I am not sure. It doesn't hurt when we try to move a thread. But if
we want to move the whole thread group, we should proceed even if the
group leader has already exited and thus has PF_EXITING bit set.

That was my question.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Mon May 31, 10:52 am)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Mon May 31, 11:04 am)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Wed Jun 2, 7:06 am)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Wed Jun 2, 1:20 pm)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Wed Jun 2, 1:58 pm)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Wed Jun 2, 2:38 pm)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Thu Jun 3, 7:43 am)
Re: [RFC] [PATCH 2/2] cgroups: make procs file writable, Oleg Nesterov, (Thu Jun 3, 7:48 am)