On Tue, May 02, 2023 at 05:11:19PM -0400, Stefan Hajnoczi wrote: > 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: fd6afc501a01 ("nbd/server: Use drained block ops to quiesce the > server") > Fixes: ca858a5fe94c ("vhost-user-blk-server: notify client about disk resize") > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> > --- > block/export/export.c | 2 ++ > block/export/vduse-blk.c | 1 - > 2 files changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Eric Blake <ebl...@redhat.com> I'm happy to add this through my NBD queue. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org