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. The `max_hw_discard_sectors` is not set, which is necessary to properly initialize `max_discard_sectors`. This causes the `zvol_misc_trim` test to fail on the 6.8+ kernel as it invokes the `blkdiscard` command, which then fails. To maintain compatibility, `blk_queue_max_discard_sectors` is used to set the discard sectors limits. Signed-off-by: Ameer Hamza <[email protected]>
- Loading branch information