Skip to contentSkip to conversation

Patch "dm-stripe: limit chunk_sectors to the stripe size" has been added to the 6.6-stable tree

PATCH Sasha Levin 1 participant 1 message Oct 16 Device mapper

lore
Share & tools
lore

Sasha Levin

author Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

dm-stripe: limit chunk_sectors to the stripe size

to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
dm-stripe-limit-chunk_sectors-to-the-stripe-size.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit f1404ed6434738563ceb9363a9dd6d745b547bd1

Author: John Garry <[email protected]>
Date:   Fri Jul 11 10:52:57 2025 +0000

dm-stripe: limit chunk_sectors to the stripe size

[ Upstream commit 5fb9d4341b782a80eefa0dc1664d131ac3c8885d ]

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.

Stable-dep-of: 1071d560afb4 ("dm-stripe: fix a possible integer overflow")

drivers/md/dm-stripe.c +1 -0
index 67026e1cbc857..aad50e9fe9958 100644
@@ -458,6 +458,7 @@ static void stripe_io_hints(struct dm_target *ti,
 	struct stripe_c *sc = ti->private;
 	unsigned int chunk_size = sc->chunk_size << SECTOR_SHIFT;
 
+	limits->chunk_sectors = sc->chunk_size;
 	limits->io_min = chunk_size;
 	limits->io_opt = chunk_size * sc->stripes;
 }