From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> Hi, If one tries to reshape a raid1 into a raid0 the kernel will OOPS because it tries to align the size of the new array to the original chunk size. However a raid1 doesn't have the notion of chunk size, so we end up dividing by zero and OOPSing. Fix it by setting the existing chunk size of the raid1 being reshaped to the new suggested chunk size. Cheers, Jes Jes Sorensen (1): Avoid OOPS when reshaping raid1 to raid0 drivers/md/raid0.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html