)]}'
{
  "commit": "1196f8b814f32cd04df334abf47648c2a9fd8324",
  "tree": "851592da601be9fe51903a49c8da460fab69b487",
  "parents": [
    "ea6949b66d084a197dd7f243b72e216a71d9f2ca"
  ],
  "author": {
    "name": "Tejun Heo",
    "email": "tj@kernel.org",
    "time": "Thu Apr 21 20:54:45 2011 +0200"
  },
  "committer": {
    "name": "Jens Axboe",
    "email": "jaxboe@fusionio.com",
    "time": "Thu Apr 21 20:54:45 2011 +0200"
  },
  "message": "block: rescan partitions on invalidated devices on -ENOMEDIA too\n\n__blkdev_get() doesn\u0027t rescan partitions if disk-\u003efops-\u003eopen() fails,\nwhich leads to ghost partition devices lingering after medimum removal\nis known to both the kernel and userland.  The behavior also creates a\nsubtle inconsistency where O_NONBLOCK open, which doesn\u0027t fail even if\nthere\u0027s no medium, clears the ghots partitions, which is exploited to\nwork around the problem from userland.\n\nFix it by updating __blkdev_get() to issue partition rescan after\n-ENOMEDIA too.\n\nThis was reported in the following bz.\n\n https://bugzilla.kernel.org/show_bug.cgi?id\u003d13029\n\nNote for stable: 2.6.38 and later only\n\nCc: stable@kernel.org\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\nReported-by: David Zeuthen \u003czeuthen@gmail.com\u003e\nReported-by: Martin Pitt \u003cmartin.pitt@ubuntu.com\u003e\nReported-by: Kay Sievers \u003ckay.sievers@vrfy.org\u003e\nTested-by: Kay Sievers \u003ckay.sievers@vrfy.org\u003e\nCc: Alan Cox \u003calan@lxorguk.ukuu.org.uk\u003e\nSigned-off-by: Jens Axboe \u003cjaxboe@fusionio.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5147bdd3b8e1cc0c86ae9ac4f32d1bcaa596d4b7",
      "old_mode": 33188,
      "old_path": "fs/block_dev.c",
      "new_id": "257b00e9842808721780d1af1c09aa2f35558d35",
      "new_mode": 33188,
      "new_path": "fs/block_dev.c"
    }
  ]
}
