mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-21 20:02:29 -07:00
vhost-user activity must be suspended during bdrv_drained_begin/end(). This prevents new requests from interfering with whatever is happening in the drained section. Previously this was done using aio_set_fd_handler()'s is_external argument. In a multi-queue block layer world the aio_disable_external() API cannot be used since multiple AioContext may be processing I/O, not just one. Switch to BlockDevOps->drained_begin/end() callbacks. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20230516190238.8401-8-stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> |
||
|---|---|---|
| .. | ||
| export.c | ||
| fuse.c | ||
| meson.build | ||
| vduse-blk.c | ||
| vduse-blk.h | ||
| vhost-user-blk-server.c | ||
| vhost-user-blk-server.h | ||
| virtio-blk-handler.c | ||
| virtio-blk-handler.h | ||