All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] md: it panic after reshape from raid1 to raid5
@ 2021-12-09  5:55 Xiao Ni
  2021-12-09  5:55 ` [PATCH 1/2] md/raid0: Free r0conf memory when register integrity failed Xiao Ni
  2021-12-09  5:55 ` [PATCH 2/2] md: Move alloc/free acct bioset in to personality Xiao Ni
  0 siblings, 2 replies; 15+ messages in thread
From: Xiao Ni @ 2021-12-09  5:55 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] 15+ messages in thread
* [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 2/2] md: Move alloc/free acct bioset in to personality Xiao Ni
  0 siblings, 1 reply; 15+ 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] 15+ messages in thread

end of thread, other threads:[~2021-12-10  9:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-09  5:55 [PATCH 0/2] md: it panic after reshape from raid1 to raid5 Xiao Ni
2021-12-09  5:55 ` [PATCH 1/2] md/raid0: Free r0conf memory when register integrity failed Xiao Ni
2021-12-09 18:02   ` Song Liu
2021-12-10  1:18     ` Xiao Ni
2021-12-10  2:07       ` Guoqing Jiang
2021-12-10  2:17         ` Xiao Ni
2021-12-10  2:27       ` Song Liu
2021-12-10  1:22     ` Guoqing Jiang
2021-12-10  1:34       ` Xiao Ni
2021-12-10  1:43         ` Guoqing Jiang
2021-12-10  2:29         ` Song Liu
2021-12-10  1:51       ` Xiao Ni
2021-12-09  5:55 ` [PATCH 2/2] md: Move alloc/free acct bioset in to personality Xiao Ni
2021-12-10  1:30   ` Guoqing Jiang
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 2/2] md: Move alloc/free acct bioset in to personality Xiao Ni

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.