From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v3 2/4] drivers/vhost/blk: stop failing write zeroes above the backend limit
Date: Wed, 25 Nov 2026 13:32:09 +0100 [thread overview]
Message-ID: <179560992942.33784.2190175085972054277.b4-review@b4> (raw)
In-Reply-To: <20261125115703.741517-3-alexander.ivanov@virtuozzo.com>
I won't apply this version, please send v4 with the changes below.
- Say that the zero-limit check goes too, and keep the cap advice:
item 1 of the cover letter reply.
On Wed, 25 Nov 2026 12:57:01 +0100, Alexander Ivanov wrote:
> - if (vhost_blk_backend_ro(f) || !max_sects ||
> - nr_sects > UINT_MAX >> SECTOR_SHIFT || nr_sects > max_sects ||
The patch drops !max_sects as well. Until 3/4 a backend without WRITE
ZEROES still gets IOERR, through the BLK_STS_NOTSUPP of
submit_bio_noacct(); say so, as 3/4 builds on it.
> Drop the check. The VMM then need not set max_write_zeroes_sectors from
> the limit of the backend.
It still has to cap it at 8388607 rounded down to the logical block
size: the parser keeps both checks. 4/4 gives that advice for discard;
give the same here.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-25 12:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:56 [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: fix write zeroes errors, support VIRTIO_BLK_F_DISCARD Alexander Ivanov
2026-11-25 11:57 ` [Devel] [PATCH hci-8.2 v3 1/4] drivers/vhost/blk: drop ring features already in VHOST_FEATURES Alexander Ivanov
2026-11-25 11:57 ` [Devel] [PATCH hci-8.2 v3 2/4] drivers/vhost/blk: stop failing write zeroes above the backend limit Alexander Ivanov
2026-11-25 12:32 ` Konstantin Khorenko [this message]
2026-11-25 11:57 ` [Devel] [PATCH hci-8.2 v3 3/4] drivers/vhost/blk: return UNSUPP for write zeroes on a backend without it Alexander Ivanov
2026-11-25 12:32 ` Konstantin Khorenko
2026-11-25 11:57 ` [Devel] [PATCH hci-8.2 v3 4/4] drivers/vhost/blk: support VIRTIO_BLK_F_DISCARD Alexander Ivanov
2026-11-25 12:32 ` Konstantin Khorenko
2026-11-25 12:32 ` [Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: fix write zeroes errors, " Konstantin Khorenko
2026-11-25 14:07 ` Alexander Ivanov
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=179560992942.33784.2190175085972054277.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=alexander.ivanov@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