]> git.hungrycats.org Git - linux/commit
[PATCH] Hotplug CPUs: Keep IRQs off in Migration Thread Calling
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 19 Mar 2004 00:03:06 +0000 (16:03 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 19 Mar 2004 00:03:06 +0000 (16:03 -0800)
commit1329b6abc196900eb04d9bde358a313c945d54e9
treee031e938cae772b4d53bf080c72a5a344224b4d6
parentd75175328540ae801ad0b63b2ac6a61e3c1d5f28
[PATCH] Hotplug CPUs: Keep IRQs off in Migration Thread Calling

Currently the migration thread re-enables irqs, then calls
move_task_away which disables IRQs again and actually does the move.
This means there is a race where the migration thread gets preempted,
and the target CPU can go down.

Hold irqs disabled in migration thread across move_task_away(), which
now doesn't need to save flags (the other caller is the hotplug CPU
code, where irqs are also disabled).
kernel/sched.c