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