mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <pierre@ossman.eu>
To: yingchao li <rjn637@gmail.com>
Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Removed SD card causes kernel panic when a transfer is on-going.
Date: Tue, 19 May 2009 13:21:30 +0200	[thread overview]
Message-ID: <20090519132130.4c74ef39@mjolnir.ossman.eu> (raw)
In-Reply-To: <437bd5150905150145k6d750c7er89fa9b02749f738d@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]

On Fri, 15 May 2009 16:45:06 +0800
yingchao li <rjn637@gmail.com> wrote:

> In my omap3430 board, when a transfer is on-going(i.e. reading from sd
> card), I unpluged directly sd card, then kernel panic.
> 

Known issue unfortunately. Something is not properly reference counting
the block queue, but the handling in mmc_block is correct as far as I
can gather.

Your patch works around the problem by basically keeping a reference to
the queue longer than the driver needs (hiding any missing references
in other layers).

I've been trying to find this bug without much success. The block layer
isn't that easy to understand. :/

Rgds
-- 
     -- 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

           reply	other threads:[~2009-05-19 11:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <437bd5150905150145k6d750c7er89fa9b02749f738d@mail.gmail.com>]

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=20090519132130.4c74ef39@mjolnir.ossman.eu \
    --to=pierre@ossman.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=rjn637@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®