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 <[email protected]> Reviewed-by: Philipp Reisner <[email protected]> Reviewed-by: Lars Ellenberg <[email protected]> Tested-by: Christoph Böhmwalder <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent e16344e commit e3992e0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)