Skip to content

Commit

Permalink
Merge pull request #61 from lorelei-sakai/fix/max-discard-size
Browse files Browse the repository at this point in the history
[VDO-5791] Fix discard problem due to upstream dm changes
  • Loading branch information
lorelei-sakai authored Jul 10, 2024
2 parents 48ef0ba + 4926355 commit 9acdc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-vdo/dm-vdo-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ static void vdo_io_hints(struct dm_target *ti, struct queue_limits *limits)
* The value is used by dm-thin to determine whether to pass down discards. The block layer
* splits large discards on this boundary when this is set.
*/
limits->max_discard_sectors =
limits->max_hw_discard_sectors =
(vdo->device_config->max_discard_blocks * VDO_SECTORS_PER_BLOCK);

/*
Expand Down

0 comments on commit 9acdc36

Please sign in to comment.