lkml.org 
[lkml]   [2009]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2 -mm 1/2] rename is_single_threaded(task) to current_is_single_threaded(void)
Date
Oleg Nesterov <oleg@redhat.com> 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@redhat.com>
> Acked-by: James Morris <jmorris@namei.org>

Acked-by: David Howells <dhowells@redhat.com>


\
 
 \ /
  Last update: 2009-07-10 16:13    [W:0.245 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site