)]}'
{
  "commit": "b8479178901557dc323a69ee254c1c732e85e0e5",
  "tree": "12c9de98d53c6a17074dc6fff0ec4d43be11acca",
  "parents": [
    "0ee31cb5df4b717de923266879964d0418c3308f"
  ],
  "author": {
    "name": "Robert Jennings",
    "email": "rcj@linux.vnet.ibm.com",
    "time": "Mon Oct 11 11:02:00 2010 -0500"
  },
  "committer": {
    "name": "James Bottomley",
    "email": "James.Bottomley@suse.de",
    "time": "Mon Oct 25 15:12:51 2010 -0500"
  },
  "message": "[SCSI] sr: fix sr_drive_status handling when initialization required\n\nAn sr device that reports sense data with SK/ASC/ASCQ of 2/4/2 (Not ready,\nLogical unit not ready, Initializing command required) will be handled\nin sr_drive_status as (2/4/!1) and assumed to be a \u0027format in progress\u0027\nwhich returns CDS_DISC_OK.  The drive will not be made ready in this case.\n\nPrior to 210ba1d1724f5c4ed87a2ab1a21ca861a915f734 sr_drive_status would\nhave returned CDS_TRAY_OPEN and this results in an START_STOP_UNIT to\nclose the tray, which resolves the initialization requirement.\n\nThis patch adds handling for SK/ASC/ASCQ of 2/4/2 where it will return\nCDS_TRAY_OPEN as a means of triggering a START_STOP_UNIT.\n\nThis issue is seen on the IBM POWER platform when using a file-backed,\nvirtual optical device.  The device does not support media queries\nthrough the Get Event Status Notification command which could otherwise\ntrigger a START_STOP_UNIT call to close an open tray.\n\nSigned-off-by: Robert Jennings \u003crcj@linux.vnet.ibm.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cbb38c5197fad67299f32a36792ab1fc5cdeec3e",
      "old_mode": 33188,
      "old_path": "drivers/scsi/sr_ioctl.c",
      "new_id": "3cd8ffbad5776dbcee289f1465022602e3897199",
      "new_mode": 33188,
      "new_path": "drivers/scsi/sr_ioctl.c"
    }
  ]
}
