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

From: David Howells
Date: Fri Jul 10 2009 - 10:09:10 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> - 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 current_is_single_threaded() and kill the argument.
>
> Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
> Acked-by: James Morris <jmorris@xxxxxxxxx>

Acked-by: David Howells <dhowells@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/