Re: [PATCH] mmc: prevent dangling block device from accessing stalequeues

From: Pierre Ossman
Date: Thu Jun 04 2009 - 15:23:03 EST


On Thu, 4 Jun 2009 20:15:13 +0100
Matt Fleming <matt@xxxxxxxxxxxxxxxxx> wrote:

>
> Maybe I'm missing something, but why is the device instance being
> destroyed during a suspend? E.g why do you have mmcblk0 before suspend and
> mmcblk1 after suspend?

Because the card gets powered down during suspend and we have no way of
detecting what has happened to it when we come back up. USB does the
same thing (although it has slightly more intelligent hardware which
can keep track of removal as long as the host has some power).

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