Re: [PATCH -mm 1/2] rename is_single_threaded(task) to is_current_single_threaded(void)

James Morris
2009-07-09T23:05:52Z

On Thu, 9 Jul 2009, Oleg Nesterov wrote:

> (on top of rework-fix-is_single_threaded.patch)
>
> - is_single_threaded(task) is not safe unless task == current,
> we can't use task->signal or task->mm.
>
> - it doesn't make sense unless task == current, the task can
> fork right after the check.
>
> Rename it to is_current_single_threaded() and kill the argument.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Acked-by: James Morris <jmorris@namei.org>

--
James Morris
<jmorris@namei.org>