srcu: Add DEBUG_OBJECTS_RCU_HEAD functionality
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 28 Apr 2017 22:39:34 +0000 (15:39 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 8 Jun 2017 15:25:39 +0000 (08:25 -0700)
commita602538e46c9c62e75f1f0be9806495c79bcda9f
tree07367b349723f12dea138a7e2fad5e845d904cb1
parentd4efe6c5ad91f9a1f2f1d66b7fbfc87e320b2abc
srcu: Add DEBUG_OBJECTS_RCU_HEAD functionality

This commit adds DEBUG_OBJECTS_RCU_HEAD checking to detect call_srcu()
counterparts to double-free bugs.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/srcutree.c