rcu: Improve __call_rcu() debug-objects error message
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 3 May 2017 18:38:55 +0000 (11:38 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:31 +0000 (18:52 -0700)
commitfa3c66476975abf00c97f27b6c2b3d223f7d57f5
tree3f39de6eb3438f8910e5a40fda19e79fd4813689
parent752de307b0ee47308bfc299de3a3ad623c16b4d8
rcu: Improve __call_rcu() debug-objects error message

The "__call_rcu(): Leaked duplicate callback" error message from
__call_rcu() has proven to be unhelpful.  This commit therefore changes
it to "__call_rcu(): Double-freed CB" and adds the value of the pointer
passed in.  The value of the pointer improves debuggability by allowing
correlation with tracing output, for example, the rcu:rcu_callback trace
event.

Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c