)]}'
{
  "commit": "5c6bd75d06db512515a3781aa97e42df2faf0815",
  "tree": "43d68c6d3174e1ae8a778acd834665c122f8b2a4",
  "parents": [
    "c2ade42dd35466d90aa6fc7cc717f396e165492f"
  ],
  "author": {
    "name": "Alasdair G Kergon",
    "email": "agk@redhat.com",
    "time": "Mon Jun 26 00:27:34 2006 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@g5.osdl.org",
    "time": "Mon Jun 26 09:58:36 2006 -0700"
  },
  "message": "[PATCH] dm: prevent removal if open\n\nIf you misuse the device-mapper interface (or there\u0027s a bug in your userspace\ntools) it\u0027s possible to end up with \u0027unlinked\u0027 mapped devices that cannot be\nremoved until you reboot (along with uninterruptible processes).\n\nThis patch prevents you from removing a device that is still open.\n\nIt introduces dm_lock_for_deletion() which is called when a device is about to\nbe removed to ensure that nothing has it open and nothing further can open it.\n It uses a private open_count for this which also lets us remove one of the\nproblematic bdget_disk() calls elsewhere.\n\nSigned-off-by: Alasdair G Kergon \u003cagk@redhat.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@osdl.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@osdl.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c826b3e1799afaff6b0c29afb06304a607c9ed84",
      "old_mode": 33188,
      "old_path": "drivers/md/dm-ioctl.c",
      "new_id": "c6ce13b18747cd180de0ccacd8d5e52ba6d4ad55",
      "new_mode": 33188,
      "new_path": "drivers/md/dm-ioctl.c"
    },
    {
      "type": "modify",
      "old_id": "952c49c3b9aad66d537799a955cd89b14c6383ac",
      "old_mode": 33188,
      "old_path": "drivers/md/dm.c",
      "new_id": "6982f86db6dc7188a0c784da335efb7744e2903c",
      "new_mode": 33188,
      "new_path": "drivers/md/dm.c"
    },
    {
      "type": "modify",
      "old_id": "71ddd1e230076a6c18853ba6cf32cdfe06adaf74",
      "old_mode": 33188,
      "old_path": "drivers/md/dm.h",
      "new_id": "9ebb24b037bcd665438964a45fb2e2921b807942",
      "new_mode": 33188,
      "new_path": "drivers/md/dm.h"
    },
    {
      "type": "modify",
      "old_id": "c67c6786612ab269d9ad6b60772ee5ec7f3756b4",
      "old_mode": 33188,
      "old_path": "include/linux/dm-ioctl.h",
      "new_id": "9623bb6250901d37e8cedfea42304b770cddc534",
      "new_mode": 33188,
      "new_path": "include/linux/dm-ioctl.h"
    }
  ]
}
