Commit 4f563a64732d ("block: add a max_user_discard_sectors queue limit") changed block core to set max_discard_sectors to:
min(lim->max_hw_discard_sectors, lim->max_user_discard_sectors)
Commit 825d8bbd2f32cb229c3b6653bd454832c3c20acb made fixes to dm to deal with this, by replacing the use of max_discard_sectors with max_hw_discard_sectors. Unfortunately, vdo did not get fixed at that time. I don't think vdo was
in the kernel at the time of the original fix.
This fix replaces the use of max_discard_sectors in vdo's io_hint function with the use of max_hw_discard_sectors. This will be true for all versions that are 6.10.0 and above.
Commit 4f563a64732d ("block: add a max_user_discard_sectors queue limit") changed block core to set max_discard_sectors to: min(lim->max_hw_discard_sectors, lim->max_user_discard_sectors)
Commit 825d8bbd2f32cb229c3b6653bd454832c3c20acb made fixes to dm to deal with this, by replacing the use of max_discard_sectors with max_hw_discard_sectors. Unfortunately, vdo did not get fixed at that time. I don't think vdo was in the kernel at the time of the original fix.
This fix replaces the use of max_discard_sectors in vdo's io_hint function with the use of max_hw_discard_sectors. This will be true for all versions that are 6.10.0 and above.