Files
linux-apfs/drivers/scsi
Tejun Heo 638428ece6 scsi: fix TUR error handling in sr_media_change()
sr_test_unit_ready() returns 0 iff TUR succeeded - IOW, when media is
present and the device is actually ready, so the return value wouldn't
be zero when TUR ends with sense data. sr_media_change() incorrectly
tests (retval || (scsi_sense_valid(sshdr)...)) when it tries to test
whether TUR failed without sense data or with sense data indicating
media-not-present.

Fix the test using scsi_status_is_good() and update comments.

- Fixed a comment typo spotted by Eike.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2010-12-16 17:53:39 +01:00
..
2010-10-25 16:28:09 -05:00
2010-10-26 10:42:35 -05:00
2010-10-25 15:01:14 -05:00
2010-07-27 12:02:00 -05:00
2010-01-18 10:48:08 -06:00
2010-05-02 15:55:03 -04:00
2010-11-10 14:54:09 +01:00
2010-08-11 00:55:42 -04:00
2010-09-16 11:48:48 -04:00
2009-12-10 08:54:13 -06:00