On Thu, Mar 25, 2021 at 04:07:32PM +0100, Greg Kurz wrote:
> When dataplane multiqueue support was added in QEMU 2.7, the path
> that would rollback guest notifiers assignment in case of error
> simply got dropped.
>
> Later on, when Error was added to blk_set_aio_context() in QEMU 4.1,
> another error path was introduced, but it ommits to rollback both
> host and guest notifiers.
>
> It seems cleaner to fix the rollback path in one go. The patch is
> simple enough that it can be adjusted if backported to a pre-4.1
> QEMU.
>
> Fixes: 51b04ac5c6a6 ("virtio-blk: dataplane multiqueue support")
> Cc: [email protected]
> Fixes: 97896a4887a0 ("block: Add Error to blk_set_aio_context()")
> Cc: [email protected]
> Signed-off-by: Greg Kurz <[email protected]>
> ---
> hw/block/dataplane/virtio-blk.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc
Description: PGP signature
