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

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

by James Morris-2 :: Rate this Message:

Reply to Author | View in Thread

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@...>

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

--
James Morris
<jmorris@...>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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