Skip to content

Commit e7b6241

Browse files
KAGA-KOKOsnitm
authored andcommitted
dm table: Remove BUG_ON(in_interrupt())
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@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
1 parent 8947833 commit e7b6241

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/md/dm-table.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,12 +1247,6 @@ void dm_table_event_callback(struct dm_table *t,
12471247

12481248
void dm_table_event(struct dm_table *t)
12491249
{
1250-
/*
1251-
* You can no longer call dm_table_event() from interrupt
1252-
* context, use a bottom half instead.
1253-
*/
1254-
BUG_ON(in_interrupt());
1255-
12561250
mutex_lock(&_event_lock);
12571251
if (t->event_fn)
12581252
t->event_fn(t->event_context);

0 commit comments

Comments
 (0)