]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
keyctl_session_to_parent(): use thread_group_empty() to check singlethreadness
authorOleg Nesterov <oleg@redhat.com>
Wed, 26 May 2010 21:43:23 +0000 (14:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:47 +0000 (09:12 -0700)
commitdd98acf74762764fbc4382a1d9a244f11a2658cc
treee194cc516ccc8812a0424dfd2ca1c32bf1052cd4
parent5089a9768041206c76fac299ccd82a528c24c254
keyctl_session_to_parent(): use thread_group_empty() to check singlethreadness

No functional changes.

keyctl_session_to_parent() is the only user of signal->count which needs
the correct value.  Change it to use thread_group_empty() instead, this
must be strictly equivalent under tasklist, and imho looks better.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/keys/keyctl.c