diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2023-05-02 17:11:19 -0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-05-10 20:50:38 +0300 |
commit | a458252c16b26a783aef22767c2a35872b72885d (patch) | |
tree | 7c8df132a24d38e1cd1be7d6bfeda808898c1538 /softmmu/qemu-seccomp.c | |
parent | f6227dd60d75f8a709e70263478677ae4f3f1172 (diff) |
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: 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 <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>
(cherry picked from commit de79b52604e43fdeba6cee4f5af600b62169f2d2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'softmmu/qemu-seccomp.c')
0 files changed, 0 insertions, 0 deletions