All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Avoid OOPS when reshaping raid1 to raid0
@ 2012-03-22 16:15 Jes.Sorensen
  2012-03-22 16:15 ` [PATCH 1/1] " Jes.Sorensen
  0 siblings, 1 reply; 5+ messages in thread
From: Jes.Sorensen @ 2012-03-22 16:15 UTC (permalink / raw)
  To: neilb; +Cc: dledford, linux-raid

From: Jes Sorensen <Jes.Sorensen@redhat.com>

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-26  8:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 16:15 [PATCH 0/1] Avoid OOPS when reshaping raid1 to raid0 Jes.Sorensen
2012-03-22 16:15 ` [PATCH 1/1] " Jes.Sorensen
2012-03-22 16:19   ` Doug Ledford
2012-03-25 22:29   ` NeilBrown
2012-03-26  8:29     ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.