]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-stripe: limit chunk_sectors to the stripe size
authorJohn Garry <john.g.garry@oracle.com>
Fri, 11 Jul 2025 10:52:57 +0000 (10:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Jul 2025 12:01:16 +0000 (06:01 -0600)
commit5fb9d4341b782a80eefa0dc1664d131ac3c8885d
tree275458e96f602697a7718bd7bb35ae67974775a4
parent7ef50c4c6a9c36fa3ea6f1681a80c0bf9a797345
dm-stripe: limit chunk_sectors to the stripe size

Same as done for raid0, set chunk_sectors limit to appropriately set the
atomic write size limit.

Setting chunk_sectors limit in this way overrides the stacked limit
already calculated based on the bottom device limits. This is ok, as
when any bios are sent to the bottom devices, the block layer will still
respect the bottom device chunk_sectors.

Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.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-6-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-stripe.c