)]}'
{
  "commit": "809c319f8a089fbc49223dc29e1cc2b978beeada",
  "tree": "17544751ba84df1eefa1ca63bffe7b64176a5fe3",
  "parents": [
    "69785d66ae1ec43f77fc65109a21721992bead9f"
  ],
  "author": {
    "name": "Stefano Garzarella",
    "email": "sgarzare@redhat.com",
    "time": "Thu Jul 27 18:10:18 2023 +0200"
  },
  "committer": {
    "name": "Stefan Hajnoczi",
    "email": "stefanha@redhat.com",
    "time": "Thu Jul 27 15:51:46 2023 -0400"
  },
  "message": "block/blkio: retry blkio_connect() if it fails using `fd`\n\nlibblkio 1.3.0 added support of \"fd\" property for virtio-blk-vhost-vdpa\ndriver. In QEMU, starting from commit cad2ccc395 (\"block/blkio: use\nqemu_open() to support fd passing for virtio-blk\") we are using\n`blkio_get_int(..., \"fd\")` to check if the \"fd\" property is supported\nfor all the virtio-blk-* driver.\n\nUnfortunately that property is also available for those driver that do\nnot support it, such as virtio-blk-vhost-user.\n\nSo, `blkio_get_int()` is not enough to check whether the driver supports\nthe `fd` property or not. This is because the virito-blk common libblkio\ndriver only checks whether or not `fd` is set during `blkio_connect()`\nand fails with -EINVAL for those transports that do not support it\n(all except vhost-vdpa for now).\n\nSo let\u0027s handle the `blkio_connect()` failure, retrying it using `path`\ndirectly.\n\nFixes: cad2ccc395 (\"block/blkio: use qemu_open() to support fd passing for virtio-blk\")\nSuggested-by: Stefan Hajnoczi \u003cstefanha@redhat.com\u003e\nSigned-off-by: Stefano Garzarella \u003csgarzare@redhat.com\u003e\nMessage-id: 20230727161020.84213-3-sgarzare@redhat.com\nSigned-off-by: Stefan Hajnoczi \u003cstefanha@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8ad7c0b57563a75e102e3f1657c5855ffdf6f138",
      "old_mode": 33188,
      "old_path": "block/blkio.c",
      "new_id": "60d2d0f1297e52139de5229065af3e0b7b392255",
      "new_mode": 33188,
      "new_path": "block/blkio.c"
    }
  ]
}
