diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2017-05-24 10:15:28 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-05-26 10:10:42 +0200 |
commit | 210e21331fc3a396af640cec652be769d146e49f (patch) | |
tree | 6a93eece8fdbd2c9bf77aeeab2a42e84cb7899ec /lib/seq_buf.c | |
parent | f9a69931c3959940538884d5962b770c3db75df5 (diff) | |
download | linux-210e21331fc3a396af640cec652be769d146e49f.tar.gz |
cpu/hotplug: Use stop_machine_cpuslocked() in takedown_cpu()
takedown_cpu() is a cpu hotplug function invoking stop_machine(). The cpu hotplug machinery holds the hotplug lock for write. stop_machine() invokes get_online_cpus() as well. This is correct, but prevents the conversion of the hotplug locking to a percpu rwsem. Use stop_machine_cpuslocked() to avoid the nested call. 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: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20170524081548.423292433@linutronix.de
Diffstat (limited to 'lib/seq_buf.c')
0 files changed, 0 insertions, 0 deletions