diff options
author | Peter Jones <pjones@redhat.com> | 2008-07-11 16:17:05 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 09:32:30 -0500 |
commit | 96bcc722c47d07b6fd05c9d0cb3ab8ea5574c5b1 (patch) | |
tree | 3b4acbb4edf5ad7cedaa425251fa278c96fb93a5 /drivers/scsi/in2000.h | |
parent | ce8a7424d23a36f043d0de8484f888971c831119 (diff) |
[SCSI] sr: report more accurate drive status after closing the tray.
So, what's happening here is that the drive is reporting a sense of
2/4/1 ("logical unit is becoming ready") from sr_test_unit_ready(), and
then we ask for the media event notification before checking that result
at all. The check_media_event_descriptor() call isn't getting a check
condition, but it's also reporting that the tray is closed and that
there's no media. In actuality it doesn't yet know if there's media or
not, but there's no way to express that in the media event status field.
My current thought is that if it told us the device isn't yet ready, we
should return that immediately, since there's nothing that'll tell us
any more data than that reliably:
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/in2000.h')
0 files changed, 0 insertions, 0 deletions