PCI: Remove WARN_ON(in_interrupt())
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 8 Feb 2021 19:44:00 +0000 (20:44 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 10 Feb 2021 22:46:29 +0000 (16:46 -0600)
commit9a1471222189bdab467db0a0043c66b95142d5a5
tree83848f18d577e42f19b34957a9839e1751d20366
parente8e9aababe60a12928172b5f018d15de3c2cdf31
PCI: Remove WARN_ON(in_interrupt())

WARN_ON(in_interrupt()) is used for historic reasons to ensure proper usage
of down_read() and predates might_sleep() and lockdep.

down_read() has might_sleep() which also catches users from preemption
disabled regions while in_interrupt() does not.

Remove WARN_ON(in_interrupt()) because there are now better debugging
facilities.

Link: https://lore.kernel.org/r/20210208194400.384003-1-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/search.c