cpu/hotplug: Convert hotplug locking to percpu rwsem
authorThomas Gleixner <tglx@linutronix.de>
Wed, 24 May 2017 08:15:40 +0000 (10:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 26 May 2017 08:10:46 +0000 (10:10 +0200)
commitfc8dffd379ca5620664336eb895a426b42847558
tree053ec8e0625ff5cbc22ec0448db77774bb8383a4
parent5d5dbc4ef27e72104dea6102e4d1a1bf5a8ed971
cpu/hotplug: Convert hotplug locking to percpu rwsem

There are no more (known) nested calls to get_online_cpus() and all
observed lock ordering problems have been addressed.

Replace the magic nested 'rwsem' hackery with a percpu-rwsem.

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: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20170524081549.447014063@linutronix.de
include/linux/cpu.h
kernel/cpu.c