mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + ide-falcon-remove-in_interrupt-usage.patch added to -mm tree
@ 2020-11-24  3:46 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-11-24  3:46 UTC (permalink / raw)
  To: bigeasy, davem, mm-commits


The patch titled
     Subject: ide/falcon: remove in_interrupt() usage
has been added to the -mm tree.  Its filename is
     ide-falcon-remove-in_interrupt-usage.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/ide-falcon-remove-in_interrupt-usage.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/ide-falcon-remove-in_interrupt-usage.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: 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>
---

 drivers/ide/falconide.c |    2 --
 1 file changed, 2 deletions(-)

--- a/drivers/ide/falconide.c~ide-falcon-remove-in_interrupt-usage
+++ a/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;
 	}
_

Patches currently in -mm which might be from bigeasy@linutronix.de are

ide-falcon-remove-in_interrupt-usage.patch
ide-remove-bug_onin_interrupt-irqs_disabled-from-ide_unregister.patch
lib-test_lockup-minimum-fix-to-get-it-compiled-on-preempt_rt.patch
rapidio-remove-unused-rio_get_asm-and-rio_get_device.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-24  3:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24  3:46 + ide-falcon-remove-in_interrupt-usage.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).