Re: [PATCH tip/core/rcu 1/4] rcu: Eliminate BUG_ON() for sync.c

2018-11-11 Thread Paul E. McKenney
On Sun, Nov 11, 2018 at 09:07:04PM -0500, Steven Rostedt wrote: > On Sun, 11 Nov 2018 11:32:14 -0800 > "Paul E. McKenney" wrote: > > > The sync.c 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

Re: [PATCH tip/core/rcu 1/4] rcu: Eliminate BUG_ON() for sync.c

2018-11-11 Thread Steven Rostedt
On Sun, 11 Nov 2018 11:32:14 -0800 "Paul E. McKenney" wrote: > The sync.c 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 > changes these BUG_ON()

[PATCH tip/core/rcu 1/4] rcu: Eliminate BUG_ON() for sync.c

2018-11-11 Thread Paul E. McKenney
The sync.c 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 changes these BUG_ON() calls to WARN_ON_ONCE(), but does so quite naively. Reported-by: Linus