mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
HOTPLUG: Adapt cpuset hotplug callback to CPU_DYING
CPU_DYING is called in atomic context, so don't try to take any locks. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
db912f9639
commit
ac076758b9
@ -2138,6 +2138,9 @@ static void common_cpu_mem_hotplug_unplug(void)
|
|||||||
static int cpuset_handle_cpuhp(struct notifier_block *nb,
|
static int cpuset_handle_cpuhp(struct notifier_block *nb,
|
||||||
unsigned long phase, void *cpu)
|
unsigned long phase, void *cpu)
|
||||||
{
|
{
|
||||||
|
if (phase == CPU_DYING || phase == CPU_DYING_FROZEN)
|
||||||
|
return NOTIFY_DONE;
|
||||||
|
|
||||||
common_cpu_mem_hotplug_unplug();
|
common_cpu_mem_hotplug_unplug();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user