[Devel] [PATCH hci-8.2 v2 3/7] dm-qcow2: drop the WARN on a read failing with ENOSPC

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 04:10:10 MSK 2026


> qrq_endio() warns when a request other than a write or a flush fails
> with ENOSPC. But the error comes from the image file's read_iter, and
> the file system may return it for a read: vstorage kio, in
> ioreq_complete(), turns PCS_REQ_F_NOSPACE into -ENOSPC for any request
> type, reads included. A WARN on an error of the lower file system
> takes the node down with panic_on_warn.
> 
> 12ab90fbc953 ("dm-qcow2: fix WARN in qrq_endio() on flush failing with
> ENOSPC") let only flushes through, assuming reads never see ENOSPC.
> 
> Such a read is still delayed and retried, as before.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-152175
> 
> Fixes: 6e2ec304689f ("dm-qcow2: Pause IO and notify about ENOSPC events")
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

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/20261130162456.1822406-1-alexander.ivanov@virtuozzo.com?part=3




More information about the Devel mailing list