From: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
To: andrey.zhadchenko@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2 v3 3/7] dm-qcow2: drop the WARN on a read failing with ENOSPC
Date: Tue, 1 Dec 2026 09:50:05 +0100 [thread overview]
Message-ID: <20261201085009.1884844-4-alexander.ivanov@virtuozzo.com> (raw)
In-Reply-To: <20261201085009.1884844-1-alexander.ivanov@virtuozzo.com>
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@virtuozzo.com>
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
---
drivers/md/dm-qcow2-map.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c
index 107091492961..e0b8a805af34 100644
--- a/drivers/md/dm-qcow2-map.c
+++ b/drivers/md/dm-qcow2-map.c
@@ -4732,12 +4732,9 @@ static void qrq_endio(struct qcow2_target *tgt, struct qio *qio,
* timeout. Note, that we do not handle merge here: merge
* callers receive -ENOSPC synchronous without intermediaries.
*/
- if (unlikely(bi_status == BLK_STS_NOSPC)) {
- WARN_ON_ONCE(!op_is_write(qio->bi_op) &&
- qio->bi_op != REQ_OP_FLUSH);
- if (qcow2_try_delay_enospc(tgt, qrq, qio))
- return;
- }
+ if (unlikely(bi_status == BLK_STS_NOSPC) &&
+ qcow2_try_delay_enospc(tgt, qrq, qio))
+ return;
mempool_free(qrq, tgt->qrq_pool);
dm_complete_request(rq, bi_status);
--
2.53.0
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-12-01 8:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:50 [Devel] [PATCH hci-8.2 v3 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 1/7] dm-qcow2: always resubmit delayed ENOSPC requests in presuspend Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 2/7] dm-qcow2: arm the ENOSPC timer only for the first delayed request Alexander Ivanov
2026-12-01 8:50 ` Alexander Ivanov [this message]
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 4/7] dm-ploop: " Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 5/7] dm-ploop: drop the WARN on a non-write request failing with ENOSPC Alexander Ivanov
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 6/7] dm-qcow2: add the report_enospc table argument Alexander Ivanov
2026-12-01 8:54 ` no-reply
2026-12-01 8:50 ` [Devel] [PATCH hci-8.2 v3 7/7] dm-ploop: " Alexander Ivanov
2026-12-01 15:28 ` [Devel] [PATCH hci-8.2 v3 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks Konstantin Khorenko
2026-12-01 15:28 ` Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201085009.1884844-4-alexander.ivanov@virtuozzo.com \
--to=alexander.ivanov@virtuozzo.com \
--cc=andrey.zhadchenko@virtuozzo.com \
--cc=devel@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox