aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNeil Brown <[email protected]>2006-10-17 00:10:35 -0700
committerLinus Torvalds <[email protected]>2006-10-17 08:18:48 -0700
commitbd5349cfd2b9bbb10a3dbcd3fe5cbaabe0b2ab9e (patch)
tree20a55c6592f0934d6dccebb7972d28d120b4badd /include/linux
parentbea493a031fe3337f4fe5479e8e865513828ea76 (diff)
[PATCH] Convert cpu hotplug notifiers to use raw_notifier instead of blocking_notifier
The use of blocking notifier by _cpu_up and _cpu_down in cpu.c has two problem. 1/ An interaction with the workqueue notifier causes lockdep to spit a warning. 2/ A notifier could conceivable be added or removed while _cpu_up or _cpu_down are in process. As each notifier is called twice (prepare then commit/abort) this could be unhealthy. To fix to we simply take cpu_add_remove_lock while adding or removing notifiers to/from the list. This makes the 'blocking' usage unnecessary as all accesses to cpu_chain are now protected by cpu_add_remove_lock. So change "blocking" to "raw" in all relevant places. This fixes 1. Credit: Andrew Morton Cc: Rusty Russell <[email protected]> Cc: Michal Piotrowski <[email protected]> (reporter) Signed-off-by: Neil Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions