kernel: rename is_single_threaded(task) to current_is_single_threaded(void)
authorOleg Nesterov <oleg@redhat.com>
Fri, 10 Jul 2009 01:48:23 +0000 (03:48 +0200)
committerJames Morris <jmorris@namei.org>
Thu, 16 Jul 2009 23:10:42 +0000 (09:10 +1000)
- 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: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found