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)
committerMike Travis <travis@sgi.com>
Fri, 16 Jan 2009 23:31:15 +0000 (15:31 -0800)
commit68564a46976017496c2227660930d81240f82355
tree22e44be89c3bc3fe3491957cca8bdc92c52e1e38
parentc99dbbe9f8f6b3e9383e64710217e873431d1c31
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>
kernel/workqueue.c