Skip to content

Commit 8561bbb

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 a1f2ec6 commit 8561bbb

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
@@ -4012,6 +4012,7 @@ static int raid10_set_queue_limits(struct mddev *mddev)
40124012
md_init_stacking_limits(&lim);
40134013
lim.max_write_zeroes_sectors = 0;
40144014
lim.io_min = mddev->chunk_sectors << 9;
4015+
lim.chunk_sectors = mddev->chunk_sectors;
40154016
lim.io_opt = lim.io_min * raid10_nr_stripes(conf);
40164017
lim.features |= BLK_FEAT_ATOMIC_WRITES;
40174018
err = mddev_stack_rdev_limits(mddev, &lim, MDDEV_STACK_INTEGRITY);

0 commit comments

Comments
 (0)