Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux/zvol_os.c: Fix max_discard_sectors limit for 6.8+ kernel
In the 6.8+ kernel, the zvol block device is allocated with qlimits passed during initialization. However, the zvol driver does not set `max_hw_discard_sectors`, which is required for properly initializing `max_discard_sectors`. As a result, the `zvol_misc_trim` test fails on the 6.8+ kernel when invoking the `blkdiscard` command. To maintain compatibility, the `blk_queue_max_discard_sectors` function is now used to set the discard sectors limits. Signed-off-by: Ameer Hamza <[email protected]>
- Loading branch information