[PATCH] workqueue: remove lock_cpu_hotplug()
authorAndrew Morton <akpm@osdl.org>
Mon, 14 Aug 2006 06:24:26 +0000 (23:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Aug 2006 19:54:29 +0000 (12:54 -0700)
commit9b41ea7289a589993d3daabc61f999b4147872c4
tree35a79670ca4493832f1da026a047e3fc9eec0910
parent2b25742556b1a351ce4821f6feddcba23bdd930b
[PATCH] workqueue: remove lock_cpu_hotplug()

Use a private lock instead.  It protects all per-cpu data structures in
workqueue.c, including the workqueues list.

Fix a bug in schedule_on_each_cpu(): it was forgetting to lock down the
per-cpu resources.

Unfixed long-standing bug: if someone unplugs the CPU identified by
`singlethread_cpu' the kernel will get very sick.

Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/workqueue.c