)]}'
{
  "commit": "4e2247b2bd289f079349d6c69755f8cff4e31f2b",
  "tree": "49f7824b1b09a6c3402d84b2173963eecdfce418",
  "parents": [
    "cd8df932d894f3128c884e3ae1b2b484540513db"
  ],
  "author": {
    "name": "Lan Tianyu",
    "email": "tianyu.lan@intel.com",
    "time": "Thu Mar 15 11:11:31 2012 +0800"
  },
  "committer": {
    "name": "James Bottomley",
    "email": "JBottomley@Parallels.com",
    "time": "Mon Mar 19 11:34:18 2012 +0000"
  },
  "message": "[SCSI] sd: Add runtime pm in the sd_check_events()\n\nThe sd_check_event() will be called periodly even when the device is in the\nsuspended status to check media event. The scsi_test_unit_ready() in the\nsd_check_event() will issue scsi cmd request. Issuing scsi request when the\ndevice is in the suspeneded status will cause problem. For example, when a usb\nflash disk in the suspended status, scsi_test_unit_ready() issues a scsi\nrequest. The request will be returned as failed because the usb device is not\nactive. The patch adds scsi_autopm_get_device() and scsi_autopm_put_device()\naround scsi_test_unit_ready() in the sd_check_event() to resolve such problem.\n\nSigned-off-by: Lan Tianyu \u003ctianyu.lan@intel.com\u003e\nAcked-by: Alan Stern \u003cstern@rowland.harvard.edu\u003e\nSigned-off-by: James Bottomley \u003cJBottomley@Parallels.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bd17cf8af01322d012d820e0f2b31cc3f0f73610",
      "old_mode": 33188,
      "old_path": "drivers/scsi/sd.c",
      "new_id": "36763504588012e92663afee18283091adc04117",
      "new_mode": 33188,
      "new_path": "drivers/scsi/sd.c"
    }
  ]
}
