)]}'
{
  "commit": "e37c4913c555bd149eba3af953fb5d3a1686dfbd",
  "tree": "ba9fbba3ba75f4a1153825c7833f977f8c6d50c6",
  "parents": [
    "9c324b8ba8e3ee8772a0c716d557e1582699d481"
  ],
  "author": {
    "name": "Jeff Mahoney",
    "email": "jeffm@suse.com",
    "time": "Wed Apr 27 16:22:20 2011 -0400"
  },
  "committer": {
    "name": "James Bottomley",
    "email": "James.Bottomley@suse.de",
    "time": "Sun May 01 13:04:02 2011 -0500"
  },
  "message": "[SCSI] iterate over devices individually for /proc/scsi/scsi\n\nOn systems with very large numbers (\u003e 1600 or so) of SCSI devices,\ncat /proc/scsi/scsi ends up failing with -ENOMEM. This is due to\nthe show routine simply iterating over all of the devices with\nbus_for_each_dev(), and trying to dump all of them into the buffer\nat the same time. On my test system (using scsi_debug with 4064 devices),\nthe output ends up being ~ 632k, far more than kmalloc will typically allow.\n\nThis patch defines its own seq_file opreations to iterate over the scsi\ndevices.The result is that each show() operation only dumps ~ 180 bytes\ninto the buffer at a time so we don\u0027t run out of memory.\n\nIf the \"Attached devices\" header isn\u0027t required, we can dump the\nsfile-\u003eprivate bit completely.\n\nSigned-off-by: Jeff Mahoney \u003cjeffm@suse.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c99da926fdac02e1d5a43faa9a9436f4d55a8f0b",
      "old_mode": 33188,
      "old_path": "drivers/scsi/scsi_proc.c",
      "new_id": "f46855cd853dc167d50e341ee494f13f6b5d8c2f",
      "new_mode": 33188,
      "new_path": "drivers/scsi/scsi_proc.c"
    }
  ]
}
