)]}'
{
  "commit": "32c356d76d7e13dcd0675189d8e9c64ef66aa561",
  "tree": "7ba361125a0abda0e2e7ca100f9d06fce52f6650",
  "parents": [
    "26e9a397774a0e94efbb8a0bf4a952c28d808cab"
  ],
  "author": {
    "name": "James Bottomley",
    "email": "James.Bottomley@HansenPartnership.com",
    "time": "Wed Aug 20 00:58:13 2008 +0200"
  },
  "committer": {
    "name": "James Bottomley",
    "email": "James.Bottomley@HansenPartnership.com",
    "time": "Thu Oct 23 11:41:16 2008 -0500"
  },
  "message": "[SCSI] fix removable device inability to detect disk changes\n\nOn Tue, 12 Aug 2008 15:08:14 +0200\nGiuliano Pochini \u003cpochini@shiny.it\u003e wrote:\n\n\u003e Fujitsu magneto-optical drive, Adaptec 29160 and\n\u003e Linux Jay 2.6.26 #7 SMP Sun Aug 10 18:34:22 CEST 2008 ppc 7455, altivec supported PowerMac3,6 GNU/Linux\n\u003e\n\u003e When I insert a disk and I mount it, scsi_test_unit_ready() is called and\n\u003e the do-while loop gets sshdr-\u003esense_key \u003d\u003d UNIT_ATTENTION in the first\n\u003e cycle and 0 in the second one. So the if below misses the UNIT_ATTENTION\n\u003e and sdev-\u003echanged \u003d 1 is not executed. At this point bad things can\n\u003e happen... I\u0027m not sure how to fix this. Any clue ?\n\nThe problem is essentially caused by us eating UNIT_ATTENTION\nconditions in scsi_test_unit_ready().  Fix by updating the -\u003echanged\nflag when this happens if the media is removable.\n\n[pochini@shiny.it: updates to tidy up patch]\nSigned-off-by: Giuliano Pochini \u003cpochini@shiny.it\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e5a9526d20376ab341b54618248dbdd93db3ded3",
      "old_mode": 33188,
      "old_path": "drivers/scsi/scsi_lib.c",
      "new_id": "f35a0951e46903e6c62d87aa93f6a3cf479af62b",
      "new_mode": 33188,
      "new_path": "drivers/scsi/scsi_lib.c"
    }
  ]
}
