From: Tony Lindgren <tony@atomide.com>
To: Pierre Ossman <pierre@ossman.eu>
Cc: Carlos Aguiar <carlos.aguiar@indt.org.br>,
Anderson Briglia <briglia.anderson@gmail.com>,
"Syed Mohammed, Khasim" <x0khasim@ti.com>,
Ben Nizette <bn@niasdigital.com>,
linux-omap@vger.kernel.org,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 9/9] omap mmc host: Use disable_irq_nosync() from within irq handlers.
Date: Thu, 14 May 2009 10:22:26 -0700 [thread overview]
Message-ID: <20090514172226.GK5593@atomide.com> (raw)
In-Reply-To: <20090426212118.19526712@mjolnir.ossman.eu>
* Pierre Ossman <pierre@ossman.eu> [090426 12:22]:
> Should I queue this up or do you want to do something differently for
> this?
Looks like a valid fix to me.
Acked-by: Tony Lindgren <tony@atomide.com>
> On Thu, 16 Apr 2009 15:55:21 +1000
> Ben Nizette <bn@niasdigital.com> wrote:
>
> >
> > disable_irq() should wait for all running handlers to complete
> > before returning. As such, if it's used to disable an interrupt
> > from that interrupt's handler it will deadlock. This replaces
> > the dangerous instances with the _nosync() variant which doesn't
> > have this problem.
> >
> > Signed-off-by: Ben Nizette <bn@niasdigital.com>
> > ---
> > diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
> > index 5570849..d5ea652 100644
> > --- a/drivers/mmc/host/omap.c
> > +++ b/drivers/mmc/host/omap.c
> > @@ -824,7 +824,7 @@ static irqreturn_t mmc_omap_irq(int irq, void *dev_id)
> > del_timer(&host->cmd_abort_timer);
> > host->abort = 1;
> > OMAP_MMC_WRITE(host, IE, 0);
> > - disable_irq(host->irq);
> > + disable_irq_nosync(host->irq);
> > schedule_work(&host->cmd_abort_work);
> > return IRQ_HANDLED;
> > }
>
>
> --
> -- Pierre Ossman
>
> WARNING: This correspondence is being monitored by the
> Swedish government. Make sure your server uses encryption
> for SMTP traffic and consider using PGP for end-to-end
> encryption.
next prev parent reply other threads:[~2009-05-14 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 5:55 [PATCH 9/9] omap mmc host: Use disable_irq_nosync() from within irq handlers Ben Nizette
2009-04-26 19:21 ` Pierre Ossman
2009-05-14 17:22 ` Tony Lindgren [this message]
2009-05-22 12:00 ` Pierre Ossman
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=20090514172226.GK5593@atomide.com \
--to=tony@atomide.com \
--cc=bn@niasdigital.com \
--cc=briglia.anderson@gmail.com \
--cc=carlos.aguiar@indt.org.br \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=pierre@ossman.eu \
--cc=x0khasim@ti.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.