summaryrefslogtreecommitdiff
path: root/kernel/padata.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2017-05-24 11:15:16 +0300
committerThomas Gleixner <tglx@linutronix.de>2017-05-26 11:10:36 +0300
commitfe5595c074005bd94f0c7d1644175941149f6768 (patch)
treedbdc36f344ab77ec7d2624687ae46fc787059b46 /kernel/padata.c
parent9805c6733349ea3ccd22cf75b8ebaabb5290e310 (diff)
downloadlinux-fe5595c074005bd94f0c7d1644175941149f6768.tar.xz
stop_machine: Provide stop_machine_cpuslocked()
Some call sites of stop_machine() are within a get_online_cpus() protected region. stop_machine() calls get_online_cpus() as well, which is possible in the current implementation but prevents converting the hotplug locking to a percpu rwsem. Provide stop_machine_cpuslocked() to avoid nested calls to get_online_cpus(). Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20170524081547.400700852@linutronix.de
Diffstat (limited to 'kernel/padata.c')
0 files changed, 0 insertions, 0 deletions