]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Add comment giving debug strategy for double call_rcu()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 19 Oct 2017 21:52:41 +0000 (14:52 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 11 Dec 2017 17:17:39 +0000 (09:17 -0800)
commitefd88b02bb9e6b8b73a20ea611e5d07ed6d4af34
tree0f84096dc8cc757f5c0c8b7c9de51dec0ccd9342
parent9122caf99b85c0f16938419547d5a9a84ae287a4
rcu: Add comment giving debug strategy for double call_rcu()

The following statement has for some reason proven non-intuitive:

WARN_ON_ONCE(rcu_segcblist_empty(&rdp->cblist) != (count == 0));

This commit therefore adds a comment that states that this warning
usually triggers in response to a double call_rcu(), which is sort
of like a double free.  The comment also suggests building with
CONFIG_DEBUG_OBJECTS_RCU_HEAD=y to track down the double call_rcu().

Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c