[Devel] [PATCH hci-8.2] dm-qcow2: fail an image write that returns 0 bytes instead of looping

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Mon Nov 23 18:49:36 MSK 2026


> From: Denis V. Lunev <den at openvz.org>
> 
> data_rw_complete() ends a short image read that transferred nothing
> with -EIO, but resubmits such a write unchanged after
> WARN_ON_ONCE(qio->ret == 0). ext4, xfs and NFS never complete a direct
> write with 0 bytes, but FUSE does when the daemon opens the file with
> FOPEN_DIRECT_IO, async_dio is off and the daemon replies 0 bytes
> written. The dm-qcow2 worker then resubmits the same write forever,
> and the guest write never completes.
> 
> Fail a write that makes no progress with -EIO, as FUSE with async_dio
> and NFS already do for it, and drop the WARN_ON_ONCE() that no longer
> has a case to catch.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-156109
> 
> Fixes: 222b6f1291c1 ("dm-qcow2: Introduce driver to create block devices over QCOW2 files")
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Denis V. Lunev <den at openvz.org>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123153817.128600-1-den@openvz.org?part=1




More information about the Devel mailing list