Re: [PATCH] scsi: Allow retry on UNIT_ATTENTION media changed if not CDROM drive

2015-01-12 Thread Christoph Hellwig
On Thu, Jan 08, 2015 at 05:33:53PM -0500, Al Cooper wrote: > Previous commit dfcf7775815504d13a1d273073810058caf84b9d added > a workaround for CD-ROM drives that were out of spec. This is causing > scsi_check_sense() to return an error instead of NEEDS_RETRY on > some USB thumb drives that return U

[PATCH] scsi: Allow retry on UNIT_ATTENTION media changed if not CDROM drive

2015-01-08 Thread Al Cooper
Previous commit dfcf7775815504d13a1d273073810058caf84b9d added a workaround for CD-ROM drives that were out of spec. This is causing scsi_check_sense() to return an error instead of NEEDS_RETRY on some USB thumb drives that return UNIT_ATTENTION Media Changed (ASC/ASCQ 28/00) after resuming from S3