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

Stefan Bader stefan.bader at canonical.com
Mon Jun 15 08:15:05 UTC 2009


Tim Gardner wrote:
> 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 ?
> 
Not to mm. Just mmc maintainer and LKML. Pierre added Jens to get some feedback 
on the generic part. But there has been no response, yet.

-- 

When all other means of communication fail, try words!






More information about the kernel-team mailing list