)]}'
{
  "commit": "2a8ccf3187aff6defed72f7d8fa562ff2f69ef2a",
  "tree": "b55656a02ecd844d9a12aec8ec22d23aebc50767",
  "parents": [
    "23231048309ea8eed0189f1eb8f870f08703cac0"
  ],
  "author": {
    "name": "Stephen M. Cameron",
    "email": "scameron@beardog.cce.hp.com",
    "time": "Thu Feb 04 08:43:41 2010 -0600"
  },
  "committer": {
    "name": "James Bottomley",
    "email": "James.Bottomley@suse.de",
    "time": "Wed Feb 17 13:23:18 2010 -0600"
  },
  "message": "[SCSI] hpsa: fix bug in adjust_hpsa_scsi_table\n\nfix bug in adjust_hpsa_scsi_table which caused devices which have\nchanged size, etc. to do the wrong thing.\n\nThe problem was as follows:\n\nThe driver maintains its current idea of what devices are present\nin the h-\u003edev[] array.  When it updates this array, it scans the\nhardware, and produces a new list of devices, call it sd[], for\nscsi devices.\n\nThen, it compares each item in h-\u003edev[] vs. sd[], and any items which\nare not present sd it removes from h-\u003edev[], and any items present\nin sd[], but different, it modifies in h-\u003edev[].\n\nThen, it looks for items in sd[] which are not present in h-\u003edev[],\nand adds those items into h-\u003edev[].  All the while, it keeps track\nof what items were added and removed to/from h-\u003edev[].\n\nFinally, it updates the SCSI mid-layer by removing and adding\nthe same devices it removed and added to/from h-\u003edev[]. (modified\ndevices count as a remove then add.)\n\noriginally, when a \"changed\" device was discovered, it was\nremoved then added to h-\u003edev[].  The item was added to the *end*\nof h-\u003edev[].  And, the item was removed from sd[] as well\n(nulled out).  As it processed h-\u003edev[], these newly added items\nat the end of the list were encountered, and sd[] was searched,\nbut those items were nulled out.  So they ended up getting removed\nimmediately after they were added.\n\nThe solution is to have a way to replace items in the h-\u003edev[]\narray instead of doing a remove + add.  Then the \"changed\" items.\nare not encountered a second time, and removed.\n\nSigned-off-by: Stephen M. Cameron \u003cscameron@beardog.cce.hp.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2764cb6056938f78fd2e11b40217a0ffb7367d09",
      "old_mode": 33188,
      "old_path": "drivers/scsi/hpsa.c",
      "new_id": "6b40221a72203a441928925f32679b566cddec7b",
      "new_mode": 33188,
      "new_path": "drivers/scsi/hpsa.c"
    }
  ]
}
