Skip to content

Commit 6772a5d

Browse files
author
Ming Lei
committed
md/raid10: set chunk_sectors limit
JIRA: https://issues.redhat.com/browse/RHEL-106845 commit 7ef50c4 Author: John Garry <john.g.garry@oracle.com> Date: Fri Jul 11 10:52:56 2025 +0000 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 <nilay@linux.ibm.com> Reviewed-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20250711105258.3135198-5-john.g.garry@oracle.com Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ming Lei <ming.lei@redhat.com>
1 parent 5ee3ac0 commit 6772a5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/md/raid10.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4009,6 +4009,7 @@ static int raid10_set_queue_limits(struct mddev *mddev)
40094009
md_init_stacking_limits(&lim);
40104010
lim.max_write_zeroes_sectors = 0;
40114011
lim.io_min = mddev->chunk_sectors << 9;
4012+
lim.chunk_sectors = mddev->chunk_sectors;
40124013
lim.io_opt = lim.io_min * raid10_nr_stripes(conf);
40134014
lim.features |= BLK_FEAT_ATOMIC_WRITES;
40144015
err = mddev_stack_rdev_limits(mddev, &lim, MDDEV_STACK_INTEGRITY);

0 commit comments

Comments
 (0)