On Tue, Jun 23, 2026 at 08:48:28PM +0200, Sam Li wrote:
> virtio_blk_submit_multireq() fuses adjacent in-zone writes into a
> single request. On a zoned backend, a merged zone append request
> that straddles a zone boundary is rejected by the device because
> each write must stay within a single zone.
> 
> Add a bail condition to the merge coalescer: if combining the
> candidate request into the current batch would cross a zone
> boundary, flush the current batch and start a new one.
> 
> Signed-off-by: Sam Li <[email protected]>
> ---
>  block/block-backend.c             | 11 +++++++++++
>  hw/block/virtio-blk.c             | 22 +++++++++++++++++++++-
>  include/system/block-backend-io.h |  1 +
>  3 files changed, 33 insertions(+), 1 deletion(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to