linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] md: it panice after reshape from raid1 to raid5
@ 2021-12-10  9:31 Xiao Ni
  2021-12-10  9:31 ` [PATCH V2 1/2] md/raid0: Free r0conf memory when register integrity failed Xiao Ni
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Xiao Ni @ 2021-12-10  9:31 UTC (permalink / raw)
  To: song; +Cc: guoqing.jiang, ncroxon, linux-raid

Hi all

After reshape from raid1 to raid5, it can panice when there are I/Os

The steps can reproduce this:
mdadm -CR /dev/md0 -l1 -n2 /dev/loop0 /dev/loop1
mdadm --wait /dev/md0
mkfs.xfs /dev/md0
mdadm /dev/md0 --grow -l5
mount /dev/md0 /mnt

These two patches fix this problem.

Xiao Ni (2):
  Free r0conf memory when register integrity failed
  Move alloc/free acct bioset in to personality

 drivers/md/md.c    | 27 +++++++++++++++++----------
 drivers/md/md.h    |  2 ++
 drivers/md/raid0.c | 28 ++++++++++++++++++++++++----
 drivers/md/raid5.c | 41 ++++++++++++++++++++++++++++++-----------
 4 files changed, 73 insertions(+), 25 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2022-01-06  1:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-10  9:31 [PATCH 0/2] md: it panice after reshape from raid1 to raid5 Xiao Ni
2021-12-10  9:31 ` [PATCH V2 1/2] md/raid0: Free r0conf memory when register integrity failed Xiao Ni
2021-12-10  9:31 ` [PATCH 2/2] md: Move alloc/free acct bioset in to personality Xiao Ni
2022-01-04 23:30 ` [PATCH 0/2] md: it panice after reshape from raid1 to raid5 Xiao Ni
2022-01-05 18:59   ` Song Liu
2022-01-06  1:53     ` Xiao Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).