From: Chris Ball <cjb@laptop.org>
To: "Nath, Arindam" <Arindam.Nath@amd.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
Andrei Warkentin <andreiw@vmware.com>
Subject: Re: [PATCH] mmc: fix a deadlock between system suspend and MMC block IO
Date: Wed, 11 Jan 2012 14:30:05 -0500 [thread overview]
Message-ID: <m2vcoidole.fsf@bob.laptop.org> (raw)
In-Reply-To: <6C03668EAF45B747AF947A1603D1B3000233727D97@SAUSEXMBP01.amd.com> (Arindam Nath's message of "Wed, 11 Jan 2012 02:56:17 -0600")
Hi,
On Wed, Jan 11 2012, Nath, Arindam wrote:
> I think we can push this patch now. If someone has any objections, we
> can discuss later.
>
> Acked-by: Arindam Nath <arindam.nath@amd.com>
Thanks, I agree. Guennadi, I've merged it for 3.3 with the following change:
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index f0b464f..bec0bf2 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2175,6 +2175,7 @@ void mmc_stop_host(struct mmc_host *host)
mmc_bus_get(host);
if (host->bus_ops && !host->bus_dead) {
+ /* Calling bus_ops->remove() with a claimed host can deadlock */
if (host->bus_ops->remove)
host->bus_ops->remove(host);
@@ -2398,7 +2399,9 @@ int mmc_suspend_host(struct mmc_host *host)
if (err == -ENOSYS || !host->bus_ops->resume) {
/*
* We simply "remove" the card in this case.
- * It will be redetected on resume.
+ * It will be redetected on resume. (Calling
+ * bus_ops->remove() with a claimed host can
+ * deadlock.)
*/
if (host->bus_ops->remove)
host->bus_ops->remove(host);
@@ -2491,7 +2494,7 @@ int mmc_pm_notify(struct notifier_block *notify_block,
if (!host->bus_ops || host->bus_ops->suspend)
break;
- /* On 2 occasions above bus_ops->remove() is called unlocked */
+ /* Calling bus_ops->remove() with a claimed host can deadlock */
if (host->bus_ops->remove)
host->bus_ops->remove(host);
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
next prev parent reply other threads:[~2012-01-11 19:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 14:28 [PATCH] mmc: fix a deadlock between system suspend and MMC block IO Guennadi Liakhovetski
2012-01-04 14:37 ` Chris Ball
2012-01-04 14:40 ` Nath, Arindam
2012-01-04 15:03 ` Chris Ball
2012-01-11 8:56 ` Nath, Arindam
2012-01-11 19:30 ` Chris Ball [this message]
2012-01-04 14:45 ` Guennadi Liakhovetski
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=m2vcoidole.fsf@bob.laptop.org \
--to=cjb@laptop.org \
--cc=Arindam.Nath@amd.com \
--cc=andreiw@vmware.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-mmc@vger.kernel.org \
/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.