Skip to content

Commit 8ac99e2

Browse files
johnpgarrykawasaki
authored andcommitted
md/raid10: set chunk_sectors limit
Same as done for raid0, set chunk_sectors limit to appropriately set the atomic write size limit. Reviewed-by: Nilay Shroff <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Signed-off-by: John Garry <[email protected]>
1 parent 80a855c commit 8ac99e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/md/raid10.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4004,6 +4004,7 @@ static int raid10_set_queue_limits(struct mddev *mddev)
40044004
md_init_stacking_limits(&lim);
40054005
lim.max_write_zeroes_sectors = 0;
40064006
lim.io_min = mddev->chunk_sectors << 9;
4007+
lim.chunk_sectors = mddev->chunk_sectors;
40074008
lim.io_opt = lim.io_min * raid10_nr_stripes(conf);
40084009
lim.features |= BLK_FEAT_ATOMIC_WRITES;
40094010
err = mddev_stack_rdev_limits(mddev, &lim, MDDEV_STACK_INTEGRITY);

0 commit comments

Comments
 (0)