Re: Buffer I/O error after s2ram with usb storage

From: Alan Stern
Date: Wed Aug 27 2014 - 10:57:41 EST

On Wed, 27 Aug 2014, Douglas Gilbert wrote:

> The unit attention doesn't look like a problem, it
> looks correct. If the system is unable to detect
> removable media being changed while the system is
> suspended, then ....
> If the media has a unique identifier, then this unit
> attention at wakeup should trigger sd to make sure
> that unique identifier has not changed.

Does sd have any code to do this? I'm not aware of any, but there
ought to be some. Otherwise there's no way to tell when a so-called
media change was just the old media being taken out and put back in.

Or maybe this functionality belongs in the block layer rather than in

Alan Stern

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at