rcu: Eliminate BUG_ON() for kernel/rcu/tree_plugin.h
authorPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 22 Oct 2018 15:26:00 +0000 (08:26 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Nov 2018 16:15:16 +0000 (08:15 -0800)
commit9213784b48f8ba666b4695ca3f5d34f583daab83
tree85e18021d0a25c3f524cd2903124e9387bea98ba
parent08543bda42ef06c5ee4cd74501c894aa7cc13ea8
rcu: Eliminate BUG_ON() for kernel/rcu/tree_plugin.h

The tree_plugin.h file has a number of calls to BUG_ON(), which panics
the kernel, which is not a good strategy for devices (like embedded)
that don't have a way to capture console output.  This commit therefore
converts these BUG_ON() calls to WARN_ON_ONCE() and WARN_ONCE().

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
[ paulmck: Fix typo: s/rcuo/rcub/. ]
kernel/rcu/tree_plugin.h