summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2020-12-15 04:03:24 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-15 21:13:36 +0100
commit483e6417aea5c6d278e6aa7facc50d961d95a0a9 (patch)
treecd8fdd87234e7de2a586ed94791273ba450c815d /drivers/ide
parentuapi: move constants from <linux/kernel.h> to <linux/const.h> (diff)
downloadlinux-483e6417aea5c6d278e6aa7facc50d961d95a0a9.tar.xz
linux-483e6417aea5c6d278e6aa7facc50d961d95a0a9.zip
ide/falcon: remove in_interrupt() usage
falconide_get_lock() is called by ide_lock_host() and its caller (ide_issue_rq()) has already a might_sleep() check. stdma_lock() has wait_event() which also has a might_sleep() check. Remove the in_interrupt() check. Link: https://lkml.kernel.org/r/20201113161021.2217361-2-bigeasy@linutronix.de Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/falconide.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/falconide.c b/drivers/ide/falconide.c
index dbeb2605e5f6..77af4c1a3f38 100644
--- a/drivers/ide/falconide.c
+++ b/drivers/ide/falconide.c
@@ -51,8 +51,6 @@ static void falconide_release_lock(void)
static void falconide_get_lock(irq_handler_t handler, void *data)
{
if (falconide_intr_lock == 0) {
- if (in_interrupt() > 0)
- panic("Falcon IDE hasn't ST-DMA lock in interrupt");
stdma_lock(handler, data);
falconide_intr_lock = 1;
}