]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
work_on_cpu: don't try to get_online_cpus() in work_on_cpu.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 16 Jan 2009 23:31:15 +0000 (15:31 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 19 Jan 2009 21:36:02 +0000 (22:36 +0100)
commit31ad9081200c06ccc350625d41d1f8b2d1cef29f
tree99768cf8eae9aaa2d1f4167103aa7ea9c70068a1
parentc7f8562a51c2e5dcc1a00a2bdd232b9965ff960d
work_on_cpu: don't try to get_online_cpus() in work_on_cpu.

Impact: remove potential circular lock dependency with cpu hotplug lock

This has caused more problems than it solved, with a pile of cpu
hotplug locking issues.

Followup patches will get_online_cpus() in callers that need it, but
if they don't do it they're no worse than before when they were using
set_cpus_allowed without locking.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/workqueue.c