]> www.infradead.org Git - users/hch/xfs.git/commit
dm vdo: replace max_discard_sectors with max_hw_discard_sectors
authorBruce Johnston <bjohnsto@redhat.com>
Tue, 9 Jul 2024 17:00:36 +0000 (13:00 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Thu, 11 Jul 2024 19:24:41 +0000 (21:24 +0200)
commitd5cfecfe7f3293a4773c4486ac92d742143e8659
tree50e75ff973f36efd19585368ddd52913c4801acf
parent825d8bbd2f32cb229c3b6653bd454832c3c20acb
dm vdo: replace max_discard_sectors with max_hw_discard_sectors

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 825d8bbd2f32 ("dm: always manage discard support in terms
of max_hw_discard_sectors") fixed most dm targetss to deal with
this, by replacing max_discard_sectors with max_hw_discard_sectors.
Unfortunately, dm-vdo did not get fixed at that time.

Fixes: 825d8bbd2f32 ("dm: always manage discard support in terms of max_hw_discard_sectors")
Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-vdo/dm-vdo-target.c