From: Ulf Hansson <ulf.hansson@stericsson.com>
To: "Jon Medhurst (Tixy)" <jon.medhurst@linaro.org>,
Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Lee Jones <lee.jones@linaro.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] mmc: mmci: Do not release spinlock in request_end
Date: Fri, 14 Oct 2011 09:37:51 +0200 [thread overview]
Message-ID: <4E97E6CF.1000601@stericsson.com> (raw)
In-Reply-To: <1318521592.2090.16.camel@linaro1>
Jon Medhurst (Tixy) wrote:
> On Thu, 2011-10-13 at 15:29 +0100, Russell King - ARM Linux wrote:
>> On Tue, Oct 11, 2011 at 04:06:41PM +0200, Ulf Hansson wrote:
>>> The patch "mmc: core: move ->request() call from atomic context",
>>> is the reason to why this change is possible. This simplifies the
>>> error handling code execution path quite a lot and potentially also
>>> fixes some error handling hang problems.
>>>
>>> Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
>> This doesn't look right:
>>
>> void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq)
>> {
>> if (err && cmd->retries) {
>> host->ops->request(host, mrq);
>>
This is NOT how it looks at mmc-next. You need to test with Adrian
Hunters patch which the commit refers two.
Linux next for mmc is available at:
git://dev.laptop.org/users/cjb/mmc mmc-next
>> So, not dropping the spinlock results in calling the request function
>> with the spinlock held - and as the request function then goes on to
>> lock the spinlock, we will deadlock.
>
> Indeed, deadlock behaviour at this point is what I see with this patch
> on a Versatile Express board running 3.0-rc9.
>
WARNING: multiple messages have this Message-ID (diff)
From: ulf.hansson@stericsson.com (Ulf Hansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mmc: mmci: Do not release spinlock in request_end
Date: Fri, 14 Oct 2011 09:37:51 +0200 [thread overview]
Message-ID: <4E97E6CF.1000601@stericsson.com> (raw)
In-Reply-To: <1318521592.2090.16.camel@linaro1>
Jon Medhurst (Tixy) wrote:
> On Thu, 2011-10-13 at 15:29 +0100, Russell King - ARM Linux wrote:
>> On Tue, Oct 11, 2011 at 04:06:41PM +0200, Ulf Hansson wrote:
>>> The patch "mmc: core: move ->request() call from atomic context",
>>> is the reason to why this change is possible. This simplifies the
>>> error handling code execution path quite a lot and potentially also
>>> fixes some error handling hang problems.
>>>
>>> Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
>> This doesn't look right:
>>
>> void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq)
>> {
>> if (err && cmd->retries) {
>> host->ops->request(host, mrq);
>>
This is NOT how it looks at mmc-next. You need to test with Adrian
Hunters patch which the commit refers two.
Linux next for mmc is available at:
git://dev.laptop.org/users/cjb/mmc mmc-next
>> So, not dropping the spinlock results in calling the request function
>> with the spinlock held - and as the request function then goes on to
>> lock the spinlock, we will deadlock.
>
> Indeed, deadlock behaviour at this point is what I see with this patch
> on a Versatile Express board running 3.0-rc9.
>
next prev parent reply other threads:[~2011-10-14 7:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-11 14:06 [PATCH] mmc: mmci: Do not release spinlock in request_end Ulf Hansson
2011-10-11 14:06 ` Ulf Hansson
2011-10-12 9:41 ` Linus Walleij
2011-10-12 9:41 ` Linus Walleij
2011-10-12 10:33 ` Adrian Hunter
2011-10-12 10:33 ` Adrian Hunter
2011-10-13 14:29 ` Russell King - ARM Linux
2011-10-13 14:29 ` Russell King - ARM Linux
2011-10-13 15:59 ` Jon Medhurst (Tixy)
2011-10-13 15:59 ` Jon Medhurst (Tixy)
2011-10-14 7:37 ` Ulf Hansson [this message]
2011-10-14 7:37 ` Ulf Hansson
2011-10-14 7:42 ` Russell King - ARM Linux
2011-10-14 7:42 ` Russell King - ARM Linux
2011-10-14 7:51 ` Ulf Hansson
2011-10-14 7:51 ` Ulf Hansson
2011-10-14 8:03 ` Russell King - ARM Linux
2011-10-14 8:03 ` Russell King - ARM Linux
2011-10-14 8:22 ` Ulf Hansson
2011-10-14 8:22 ` Ulf Hansson
2011-10-16 20:34 ` Linus Walleij
2011-10-16 20:34 ` Linus Walleij
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=4E97E6CF.1000601@stericsson.com \
--to=ulf.hansson@stericsson.com \
--cc=jon.medhurst@linaro.org \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
/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.