[PATCH] cpuset fork locking fix
authorPaul Jackson <pj@sgi.com>
Mon, 28 Nov 2005 21:44:05 +0000 (13:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 28 Nov 2005 22:42:24 +0000 (14:42 -0800)
commit8c4b8add83c93306b07d78469fd351dc462e4b66
treee99523b961cb84f0462057d329de27e1d85546e6
parent3148890bfa4f36c9949871264e06ef4d449eeff9
[PATCH] cpuset fork locking fix

Move the cpuset_fork() call below the write_unlock_irq call in
kernel/fork.c copy_process().

Since the cpuset-dual-semaphore-locking-overhaul.patch, the cpuset_fork()
routine acquires task_lock(), so cannot be called while holding the
tasklist_lock for write.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/fork.c