)]}'
{
  "commit": "08fd2f30bd3ee5d04596da8293689af4d4f7eb6c",
  "tree": "eb72c9f023390352184a981fb23df34234e2a6e5",
  "parents": [
    "35bfc7324e2e6946c4113ada5db30553a1a7c40b"
  ],
  "author": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Thu Dec 03 10:28:44 2009 +0100"
  },
  "committer": {
    "name": "Aurelien Jarno",
    "email": "aurelien@aurel32.net",
    "time": "Thu Dec 03 11:29:25 2009 +0100"
  },
  "message": "qcow2: Bring synchronous read/write back to life\n\nWhen the synchronous read and write functions were dropped, they were replaced\nby generic emulation functions. Unfortunately, these emulation functions don\u0027t\nprovide the same semantics as the original functions did.\n\nThe original bdrv_read would mean that we read some data synchronously and that\nwe won\u0027t be interrupted during this read. The latter assumption is no longer\ntrue with the emulation function which needs to use qemu_aio_poll and therefore\nallows the callback of any other concurrent AIO request to be run during the\nread. Which in turn means that (meta)data read earlier could have changed and\nbe invalid now. qcow2 is not prepared to work in this way and it\u0027s just scary\nhow many places there are where other requests could run.\n\nI\u0027m not sure yet where exactly it breaks, but you\u0027ll see breakage with virtio\non qcow2 with a backing file. Providing synchronous functions again fixes the\nproblem for me.\n\nPatchworks-ID: 35437\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\nSigned-off-by: Anthony Liguori \u003caliguori@us.ibm.com\u003e\n(cherry picked from commit ef845c3bf421290153154635dc18eaa677cecb43)\n\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\nSigned-off-by: Aurelien Jarno \u003caurelien@aurel32.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d4631c3974009e7edae768a730d0b6f6a8e74da0",
      "old_mode": 33188,
      "old_path": "block/qcow2-cluster.c",
      "new_id": "4d0ce161aeba90b95672506e1cbec7fcde07ea33",
      "new_mode": 33188,
      "new_path": "block/qcow2-cluster.c"
    },
    {
      "type": "modify",
      "old_id": "dd32ea2078df050e4f91e4055db1974e7663dbf2",
      "old_mode": 33188,
      "old_path": "block/qcow2.c",
      "new_id": "ced257e9f57c2c8a1e8b6715453a2da5fd08fc7a",
      "new_mode": 33188,
      "new_path": "block/qcow2.c"
    },
    {
      "type": "modify",
      "old_id": "965a2f45c1ad0568709711f403537c1ba2cf9a68",
      "old_mode": 33188,
      "old_path": "block/qcow2.h",
      "new_id": "b41aa63409f71dfe7f77f1ad667d95a6f4b90ba2",
      "new_mode": 33188,
      "new_path": "block/qcow2.h"
    }
  ]
}
