[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 5/8] virtio-blk: Fix rollback path in virtio_blk_data_plane_sta
From: |
Stefan Hajnoczi |
Subject: |
Re: [RFC 5/8] virtio-blk: Fix rollback path in virtio_blk_data_plane_start() |
Date: |
Mon, 29 Mar 2021 18:25:09 +0100 |
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: stefanha@redhat.com
> Fixes: 97896a4887a0 ("block: Add Error to blk_set_aio_context()")
> Cc: kwolf@redhat.com
> Signed-off-by: Greg Kurz <groug@kaod.org>
> ---
> hw/block/dataplane/virtio-blk.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
- [RFC 0/8] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci, Greg Kurz, 2021/03/25
- [RFC 1/8] memory: Allow eventfd add/del without starting a transaction, Greg Kurz, 2021/03/25
- [RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers(), Greg Kurz, 2021/03/25
- [RFC 3/8] virtio: Add API to batch set host notifiers, Greg Kurz, 2021/03/25
- [RFC 4/8] virtio-pci: Batch add/del ioeventfds in a single MR transaction, Greg Kurz, 2021/03/25
- [RFC 5/8] virtio-blk: Fix rollback path in virtio_blk_data_plane_start(), Greg Kurz, 2021/03/25
- Re: [RFC 5/8] virtio-blk: Fix rollback path in virtio_blk_data_plane_start(),
Stefan Hajnoczi <=
- [RFC 6/8] virtio-blk: Use virtio_bus_set_host_notifiers(), Greg Kurz, 2021/03/25
- [RFC 7/8] virtio-scsi: Set host notifiers and callbacks separately, Greg Kurz, 2021/03/25
- [RFC 8/8] virtio-scsi: Use virtio_bus_set_host_notifiers(), Greg Kurz, 2021/03/25
- Re: [RFC 0/8] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci, Michael S. Tsirkin, 2021/03/25
- Re: [RFC 0/8] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci, Stefan Hajnoczi, 2021/03/29