[Devel] [PATCH hci-8.1 2/2] dm-ploop: set max discard segments to one

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Mon Nov 9 18:44:25 MSK 2026


> Discard is a special type of request that can have non-contiguous
> bios.
> Imagine we have a request with starting sector 0 and length 1024,
> so read or write means [0, 1024) range in the file. For discard this
> request can have 2 bios [0, 512) and [1024, 1536), but we always
> discarded [0, 1024).
> Set max_discard_segments to 1 to avoid such merges.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-154159
> Fixes: 6ddad5a4d226 ("dm-ploop: Add ploop target driver")
> Feature: dm-ploop: ploop target driver
> Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261109153619.277888-1-andrey.zhadchenko@virtuozzo.com?part=2




More information about the Devel mailing list