]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm table: Remove BUG_ON(in_interrupt())
authorThomas Gleixner <tglx@linutronix.de>
Fri, 13 Nov 2020 14:19:10 +0000 (15:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:46 +0000 (11:25 +0100)
commit00a39c0c48ae619ffb2a8de327ac4b4e2e98895d
tree5b4a31084dc484affb5e39a654311a635d7bed31
parentfe72ad02f8ab634b712a16de8d9c6bd59ee00228
dm table: Remove BUG_ON(in_interrupt())

[ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-table.c