]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Fix RCU CPU stall detection in tiny implementation
authorMiroslav Benes <mbenes@suse.cz>
Mon, 22 Dec 2014 19:10:12 +0000 (11:10 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 16 Jan 2015 07:33:16 +0000 (23:33 -0800)
commit573a26bf7802afc7e87e4bbf7572c383f3e0258b
treeb9199fa245a072d9428e16d7faf24ae84246271a
parent0117aef5e8f0701207854bf9534840b8707450bd
rcu: Fix RCU CPU stall detection in tiny implementation

The tiny RCU CPU stall detection depends on *rcp->curtail not being
NULL. It is however a tail pointer and thus NULL by definition. Instead we
should check rcp->rcucblist for the presence of pending callbacks which
need to be processed. With this fix INFO about the stall is printed and
jiffies_stall (jiffies at next stall) correctly updated.

Note that the check for pending callback is necessary to avoid spurious
warnings if there are no pendings callbacks.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
[ paulmck: Fused identical "if" statements, ported to -rcu. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tiny_plugin.h