[dm-devel] dm table: Remove BUG_ON(in_interrupt())

Mike Snitzer snitzer at redhat.com
Fri Nov 13 18:51:31 UTC 2020


On Fri, Nov 13 2020 at  9:19am -0500,
Sebastian Andrzej Siewior <bigeasy at linutronix.de> wrote:

> From: Thomas Gleixner <tglx at linutronix.de>
> 
> The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from
> a rework of the dm table code which changed the calling context.
> 
> Issuing a BUG for a wrong calling context is frowned upon and
> in_interrupt() is deprecated and only covering parts of the wrong
> contexts. The sanity check for the context is covered by
> CONFIG_DEBUG_ATOMIC_SLEEP and other debug facilities already.
> 
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
> Cc: dm-devel at redhat.com
> Cc: Mike Snitzer <snitzer at redhat.com>
> Cc: Alasdair Kergon <agk at redhat.com>

I picked this up for 5.11, thanks.




More information about the dm-devel mailing list