Skip to content

Commit e3992e0

Browse files
Christoph Hellwigaxboe
authored andcommitted
drbd: don't set max_write_zeroes_sectors in decide_on_discard_support
fixup_write_zeroes always overrides the max_write_zeroes_sectors value a little further down the callchain, so don't bother to setup a limit in decide_on_discard_support. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Philipp Reisner <philipp.reisner@linbit.com> Reviewed-by: Lars Ellenberg <lars.ellenberg@linbit.com> Tested-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> Link: https://lore.kernel.org/r/20240306140332.623759-6-philipp.reisner@linbit.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent e16344e commit e3992e0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/block/drbd/drbd_nl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,6 @@ static void decide_on_discard_support(struct drbd_device *device,
12601260
blk_queue_discard_granularity(q, 512);
12611261
max_discard_sectors = drbd_max_discard_sectors(connection);
12621262
blk_queue_max_discard_sectors(q, max_discard_sectors);
1263-
blk_queue_max_write_zeroes_sectors(q, max_discard_sectors);
12641263
return;
12651264

12661265
not_supported:

0 commit comments

Comments
 (0)