softirq: s/BUG/WARN_ONCE/ on tasklet SCHED state not set
authorDirk Behme <dirk.behme@de.bosch.com>
Wed, 17 Mar 2021 10:20:12 +0000 (11:20 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Mar 2021 11:59:35 +0000 (12:59 +0100)
commit6b2c339df90788ce6aeecee78d6494f262929206
tree9509c9a60854e0af8025b7316d0bdb617859d5be
parent5c982c58752118b6c1f295024d3fda5ff22d3c52
softirq: s/BUG/WARN_ONCE/ on tasklet SCHED state not set

Replace BUG() with WARN_ONCE() on wrong tasklet state, in order to:

 - increase the verbosity / aid in debugging
 - avoid fatal/unrecoverable state

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210317102012.32399-1-erosca@de.adit-jv.com
kernel/softirq.c