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

Tim Gardner tim.gardner at canonical.com
Thu Jun 11 10:47:15 UTC 2009


Stefan Bader wrote:
> 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
> 

ACK - did you also send this to the mm tree, or just the block device 
maintainers ?

-- 
Tim Gardner tim.gardner at canonical.com




More information about the kernel-team mailing list