kernel: rename is_single_threaded(task) to current_is_single_threaded(void)
commit5bb459bb45d1ad3c177485dcf0af01580aa31125
authorOleg Nesterov <oleg@redhat.com>
Fri, 10 Jul 2009 01:48:23 +0000 (10 03:48 +0200)
committerJames Morris <jmorris@namei.org>
Thu, 16 Jul 2009 23:10:42 +0000 (17 09:10 +1000)
treefd6d11d424d222b97f56d8b870bdecbacaab8a17
parentd2e3ee9b29f5de5b01e611b04e6fb29760589b01
kernel: rename is_single_threaded(task) to current_is_single_threaded(void)

- 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>
include/linux/sched.h
lib/is_single_threaded.c
security/keys/process_keys.c
security/selinux/hooks.c