[Karmic] [PATCH]: mmc: prevent dangling block device from accessing stale queues

Stefan Bader stefan.bader at canonical.com
Wed Jun 10 15:30:50 UTC 2009


Background: With the karmic kernel it became dangerous to use SD cards 
(ext3/ext4) as, if they are left mounted on suspend, all data is gone on 
resume. The problems seems to be hidden in the way mmcblock handles suspend (by 
throwing away the device) likely mixed with the kernel being quicker on its way 
down than before.

Fix: The following fix will prevent data loss by making sure the block queue 
cannot be re-used before the old device is really gone. It has been sent 
upstream but it became a bit quiet around it. So I am not sure the patch will 
be the final solution. But given the severe implications I believe we should 
carry it until then.

Stefan

-- 

When all other means of communication fail, try words!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-UBUNTU-Upstream-mmc-prevent-dangling-block-device-fr.patch
Type: text/x-diff
Size: 2517 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20090610/a1582e30/attachment.patch>


More information about the kernel-team mailing list