[Devel] [PATCH hci-8.2 v3 3/4] drivers/vhost/blk: return UNSUPP for write zeroes on a backend without it

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.

- Look up the bdev only on an error: item 2 of the cover letter reply.

On Wed, 25 Nov 2026 12:57:02 +0100, Alexander Ivanov wrote:
> +	struct block_device *bdev = I_BDEV(req->blk->backend->f_mapping->host);

This runs for every completed bio, reads and writes included, while
only a failed WRITE ZEROES or discard needs it. bio->bi_bdev inside the
error branch is enough.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list