Re: Removed SD card causes kernel panic when a transfer ison-going.

From: Pierre Ossman
Date: Tue May 19 2009 - 07:21:52 EST


On Fri, 15 May 2009 16:45:06 +0800
yingchao li <rjn637@xxxxxxxxx> 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: signature.asc
Description: PGP signature