From: Ingo Molnar <mingo@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Valentin Rothberg <Valentin.Rothberg@lip6.fr>,
iss_storagedev@hp.com, linux-kernel@vger.kernel.org,
Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] block/cpqarray.c: remove IRQF_DISABLED flag
Date: Tue, 3 Mar 2015 09:37:53 +0100 [thread overview]
Message-ID: <20150303083753.GA1352@gmail.com> (raw)
In-Reply-To: <20150302135657.e8a3dfa54fae3d15f658b3b5@linux-foundation.org>
* Andrew Morton <akpm@linux-foundation.org> wrote:
> On Fri, 27 Feb 2015 13:32:55 +0100 Valentin Rothberg <Valentin.Rothberg@lip6.fr> wrote:
>
> > The IRQF_DISABLED is a NOOP and scheduled to be removed. According to
> > Ingo Molnar (e58aa3d2d0cc01ad8d6f7f640a0670433f794922) running IRQ
> > handlers with interrupts enabled can cause stack overflows when the
> > interrupt line of the issuing device is still active.
> >
>
> I suggest you prepare a patch which removes IRQF_DISABLED entirely.
Yes.
> Several drivers still use it and it is possible that they have been
> buggy for some time, [...]
Well, IRQF_DISABLED is now the unconditional default, so requesting
irqs with IRQF_DISABLED is simply superfluous, not buggy, AFAICS.
> [...] so we should be careful to cc the relevant maintainers (they
> probably don't exist) so they can check out what's going on in their
> code.
I think part of it might be the stale spinlock related comment in
Documentation/PCI/MSI-HOWTO.txt which explicitly recommends
IRQF_DISABLED use. So that reference should be zapped as well.
So maybe drivers still using IRQF_DISABLED might not be potentially
broken drivers at all, but are drivers written by exceptionally
capable driver authors, who read kernel documentation!
Thanks,
Ingo
next prev parent reply other threads:[~2015-03-03 8:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 12:32 [PATCH] block/cpqarray.c: remove IRQF_DISABLED flag Valentin Rothberg
2015-03-02 21:56 ` Andrew Morton
2015-03-03 8:30 ` Valentin Rothberg
2015-03-03 8:37 ` Ingo Molnar [this message]
2015-03-03 9:51 ` Valentin Rothberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150303083753.GA1352@gmail.com \
--to=mingo@kernel.org \
--cc=Valentin.Rothberg@lip6.fr \
--cc=akpm@linux-foundation.org \
--cc=iss_storagedev@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox