qemu-e2k/block/export
Stefan Hajnoczi de79b52604 block/export: call blk_set_dev_ops(blk, NULL, NULL)
Most export types install BlockDeviceOps pointers. It is easy to forget
to remove them because that happens automatically via the "drive" qdev
property in hw/ but not block/export/.

Put blk_set_dev_ops(blk, NULL, NULL) calls in the core export.c code so
the export types don't need to remember.

This fixes the nbd and vhost-user-blk export types.

Fixes: fd6afc501a ("nbd/server: Use drained block ops to quiesce the server")
Fixes: ca858a5fe9 ("vhost-user-blk-server: notify client about disk resize")
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20230502211119.720647-1-stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
2023-05-03 14:00:08 -05:00
..
export.c block/export: call blk_set_dev_ops(blk, NULL, NULL) 2023-05-03 14:00:08 -05:00
fuse.c
meson.build
vduse-blk.c block/export: call blk_set_dev_ops(blk, NULL, NULL) 2023-05-03 14:00:08 -05:00
vduse-blk.h
vhost-user-blk-server.c vhost-user-blk-server: notify client about disk resize 2023-04-21 04:25:52 -04:00
vhost-user-blk-server.h
virtio-blk-handler.c
virtio-blk-handler.h