Commit 69b895fd authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds
Browse files

S390 topology: don't use kthread() for arch_reinit_sched_domains()

Now that it is safe to use get_online_cpus() we can revert

	[S390] cpu topology: Fix possible deadlock.
	commit: fd781fa2

and call arch_reinit_sched_domains() directly from topology_work_fn().
Signed-off-by: default avatarOleg Nesterov <>
Cc: Gautham R Shenoy <>
Tested-by: default avatarHeiko Carstens <>
Cc: Max Krasnyansky <>
Cc: Paul Jackson <>
Cc: Paul Menage <>
Cc: Peter Zijlstra <>
Cc: Vegard Nossum <>
Cc: Martin Schwidefsky <>
Cc: Ingo Molnar <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3da1c84c
......@@ -9,7 +9,6 @@
#include <linux/device.h>
#include <linux/bootmem.h>
#include <linux/sched.h>
#include <linux/kthread.h>
#include <linux/workqueue.h>
#include <linux/cpu.h>
#include <linux/smp.h>
......@@ -230,20 +229,9 @@ void arch_update_cpu_topology(void)
static int topology_kthread(void *data)
return 0;
static void topology_work_fn(struct work_struct *work)
/* We can't call arch_reinit_sched_domains() from a multi-threaded
* workqueue context since it may deadlock in case of cpu hotplug.
* So we have to create a kernel thread in order to call
* arch_reinit_sched_domains().
kthread_run(topology_kthread, NULL, "topology_update");
void topology_schedule_update(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment