]> git.baikalelectronics.ru Git - kernel.git/commit
cpu/hotplug: Plug death reporting race
authorThomas Gleixner <tglx@linutronix.de>
Thu, 3 Mar 2016 09:52:10 +0000 (10:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 3 Mar 2016 09:52:10 +0000 (10:52 +0100)
commit828e26928595d80fe3a7ce160e9c42c8dcd056ee
tree1be0de7afced46cfca629dcbfc1807280c50bb13
parent22d6ede788fc15eef59ace2b530db8b05e773e44
cpu/hotplug: Plug death reporting race

Paul noticed that the conversion of the death reporting introduced a race
where the outgoing cpu might be delayed after waking the controll processor,
so it might not be able to call rcu_report_dead() before being physically
removed, leading to RCU stalls.

We cant call complete after rcu_report_dead(), so instead of going back to
busy polling, simply issue a function call to do the completion.

Fixes: 22d6ede788fc "rcu: Make CPU_DYING_IDLE an explicit call"
Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20160302201127.GA23440@linux.vnet.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
kernel/cpu.c