]> git.neil.brown.name Git - history.git/commit
[PATCH] Hotplug CPUs: Take cpu Lock Around Migration
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 19 Mar 2004 00:02:56 +0000 (16:02 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 19 Mar 2004 00:02:56 +0000 (16:02 -0800)
commitd75175328540ae801ad0b63b2ac6a61e3c1d5f28
treed3e5b2e398d2653f22ccf9bb948025f8cae84fa7
parenta4d53cb78bbc6f29d588b3f1a28e7c2abdc14b00
[PATCH] Hotplug CPUs: Take cpu Lock Around Migration

Grab cpu lock around sched_migrate_task() and sys_sched_setaffinity().
This is a noop without CONFIG_HOTPLUG_CPU.

The sched_migrate_task may have a performance penalty on NUMA if lots
of exec rebalancing is happening, however this only applies to
CONFIG_NUMA and CONFIG_HOTPLUG_CPU, which noone does at the moment
anyway.

Also, the scheduler in -mm solves the race another way, so this will
vanish then.
kernel/sched.c