]> git.hungrycats.org Git - linux/commit
[PATCH] sched_getaffinity vs cpu hotplug race fix
authorAndrew Morton <akpm@osdl.org>
Mon, 10 May 2004 06:30:12 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 10 May 2004 06:30:12 +0000 (23:30 -0700)
commit870d3c0a86538c98d81849fa58d13f443d30ca2c
tree987fdf43548d457f9ff7bc1bd2d98284254c6d83
parentddea677b6730f9f72d94f87885e38cff6d329fab
[PATCH] sched_getaffinity vs cpu hotplug race fix

From: Srivatsa Vaddagiri <vatsa@in.ibm.com>

Fix the race in sys_sched_getaffinity.  Patch below takes cpu_hotplug lock
before reading cpus_allowed mask of a task.
kernel/sched.c