]> git.neil.brown.name Git - history.git/commit
[PATCH] AB-BA deadlock between uidhash_lock and tasklist_lock.
authorAndrew Morton <akpm@osdl.org>
Thu, 23 Dec 2004 11:27:26 +0000 (03:27 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Dec 2004 11:27:26 +0000 (03:27 -0800)
commit002984e254b68b91a287b5c95dc5f1c83353c27b
tree0ff8dabd81598730f251ac73acea6bfb688ebb82
parentba169c302c583ccc9f0b8259f4ce5cd3391194f2
[PATCH] AB-BA deadlock between uidhash_lock and tasklist_lock.

switch_uid() doesn't care about tasklist_lock, so do it outside
the lock and avoid a subtle (and very very unlikely to trigger)
AB-BA deadlock.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/exit.c