]> git.baikalelectronics.ru Git - kernel.git/commit
cpuset: fix possible races in cpu/memory hotplug
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 2 Apr 2009 23:57:49 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Apr 2009 02:04:56 +0000 (19:04 -0700)
commit010e52dae8be30de852dc4886ec6d767fa52028e
tree9bda180eb4e9fed454453b4aeaf9447602c74022
parent166ae326317abffa8e85aedaeaedb3cb7e0337a1
cpuset: fix possible races in cpu/memory hotplug

Change to cpuset->cpus_allowed and cpuset->mems_allowed should be protected
by callback_mutex, otherwise the reader may read wrong cpus/mems. This is
cpuset's lock rule.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpuset.c