mmc: Flush block queue when removing card
authorPierre Ossman <drzeus@drzeus.cx>
Tue, 14 Nov 2006 21:08:16 +0000 (22:08 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Fri, 1 Dec 2006 18:06:05 +0000 (19:06 +0100)
After mmc_block's remove function has exited, we must not
touch the card structure in any way. This means we not only
must remove the gendisk, we must also flush out any
remaning requests already queued up.

We previously removed the disk, but didn't flush it,
causing oops:es when removing a card in the middle of a
transfer.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

No differences found