summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr_vendor.c
diff options
context:
space:
mode:
authorRobert Jennings <rcj@linux.vnet.ibm.com>2010-10-11 11:02:00 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-10-25 15:12:51 -0500
commitb8479178901557dc323a69ee254c1c732e85e0e5 (patch)
tree12c9de98d53c6a17074dc6fff0ec4d43be11acca /drivers/scsi/sr_vendor.c
parent0ee31cb5df4b717de923266879964d0418c3308f (diff)
downloadop-kernel-dev-b8479178901557dc323a69ee254c1c732e85e0e5.zip
op-kernel-dev-b8479178901557dc323a69ee254c1c732e85e0e5.tar.gz
[SCSI] sr: fix sr_drive_status handling when initialization required
An sr device that reports sense data with SK/ASC/ASCQ of 2/4/2 (Not ready, Logical unit not ready, Initializing command required) will be handled in sr_drive_status as (2/4/!1) and assumed to be a 'format in progress' which returns CDS_DISC_OK. The drive will not be made ready in this case. Prior to 210ba1d1724f5c4ed87a2ab1a21ca861a915f734 sr_drive_status would have returned CDS_TRAY_OPEN and this results in an START_STOP_UNIT to close the tray, which resolves the initialization requirement. This patch adds handling for SK/ASC/ASCQ of 2/4/2 where it will return CDS_TRAY_OPEN as a means of triggering a START_STOP_UNIT. This issue is seen on the IBM POWER platform when using a file-backed, virtual optical device. The device does not support media queries through the Get Event Status Notification command which could otherwise trigger a START_STOP_UNIT call to close an open tray. Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/sr_vendor.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud