summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-12-11 00:54:45 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-11 02:41:17 +0100
commitf6507f83bccd4a5f7dc7091079bf58128dc56d66 (patch)
treef664fee962fdd4521ec1b64143d8a0f21a32a7e0 /arch
parentusermodehelper: kill the kmod_thread_locker logic (diff)
downloadlinux-f6507f83bccd4a5f7dc7091079bf58128dc56d66.tar.xz
linux-f6507f83bccd4a5f7dc7091079bf58128dc56d66.zip
exit: wait: cleanup the ptrace_reparented() checks
Now that EXIT_DEAD is the terminal state we can kill "int traced" variable and check "state == EXIT_DEAD" instead to cleanup the code. In particular, this way it is clear that the check obviously doesn't need tasklist_lock. Also fix the type of "unsigned long state", "long" was always wrong although this doesn't matter because cmpxchg/xchg uses typeof(*ptr). [akpm@linux-foundation.org: don't make me google the C Operator Precedence table] Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Aaron Tomlin <atomlin@redhat.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Rik van Riel <riel@redhat.com> Cc: Sterling Alexander <stalexan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions