]> git.hungrycats.org Git - linux/commit
[PATCH] Fix up scsi_test_unit_ready() to work correctly with CD-ROMs
authorJames Bottomley <james.bottomley@steeleye.com>
Fri, 10 Sep 2004 13:52:44 +0000 (09:52 -0400)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Fri, 10 Sep 2004 13:52:44 +0000 (09:52 -0400)
commit8b0f49f52f8a3793197f0abf9f5be5d9eaac95c4
tree9b75fe2191cc7b6f4ec5bfd50b4dcd54f952177b
parentba3f139fc6cf6abf312bfada78a12809dccae7b3
[PATCH] Fix up scsi_test_unit_ready() to work correctly with CD-ROMs

Olaf Hering noticed that SG_IO was no-longer working correctly on some
CD-ROMS.  The reason is a change in behaviour induced by switching to
the new scsi_test_unit_ready() API.

Apparently the CD-ROM special case needs to ignore both UNIT_ATTENTION
and NOT_READY for removable media.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c