Files
linux/drivers/ide
Sebastian Andrzej Siewior ec680c1990 ide: remove BUG_ON(in_interrupt() || irqs_disabled()) from ide_unregister()
In the discussion about preempt count consistency across kernel
configurations:

 https://lore.kernel.org/r/[email protected]/

it was concluded that the usage of in_interrupt() and related context
checks should be removed from non-core code.

Both BUG_ON()s in ide-probe.c were introduced in commit
   4015c949fb465 ("[PATCH] update ide core")

when ide_unregister() was extended with semaphore based locking.  Both
checks won't complain about disabled preemption which is also wrong.

The might_sleep() in today's mutex_lock() will complain about the
missuses.

Remove the BUG_ON() statements.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Acked-by: Jens Axboe <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2020-12-15 12:13:36 -08:00
..
…
…
…
…
2020-09-10 09:32:31 -06:00
…
2018-11-10 08:03:52 -07:00
2018-05-07 07:15:41 +02:00
2018-06-12 16:19:22 -07:00
…
…
…
…
…
2016-01-18 14:12:33 -05:00