]> git.baikalelectronics.ru Git - kernel.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)
committerMike Travis <travis@sgi.com>
Fri, 16 Jan 2009 23:31:15 +0000 (15:31 -0800)
commit9d6be3f71a576be1db1be991db7d681d6b3907f6
tree22e44be89c3bc3fe3491957cca8bdc92c52e1e38
parente200c5faead96d1e223488e0aafed0cd7f089f94
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