[Devel] [PATCH hci-8.2 v3 0/4] drivers/vhost/blk: fix write zeroes errors, support VIRTIO_BLK_F_DISCARD

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 25 15:32:09 MSK 2026


I won't apply this version, please send v4 with the changes below.

1. 2/4: say that the check of a zero limit goes too, and keep the cap
   advice the same as in 4/4.
2. 3/4: find the backend bdev only for a failed bio.
3. 4/4: one form of the op test for both types, as asked for v1.
4. 4/4: vhost_blk_parse_segment() gets the backend once; do not look
   up f in it and bdev from f in both callers.
5. 4/4: the split, not the hint, is why the backend limit is not
   checked; a drive whose discards are to be ignored must not get the
   feature; the 8388607 cap rounded down to the logical block size.

The code of all four patches is right, and the v1 asks of both series
are done apart from items 3 and 5.

On Wed, 25 Nov 2026 12:56:59 +0100, Alexander Ivanov wrote:
> Patch 1 drops the ring features that are already part of VHOST_FEATURES.
> Patch 2 stops checking WRITE ZEROES ranges against the backend limit.

Item 1: say here too that patch 2 drops the zero-limit check, which 3/4
then relies on.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list