From: Xiao Ni <xni@redhat.com>
To: song@kernel.org
Cc: guoqing.jiang@linux.dev, ncroxon@redhat.com, linux-raid@vger.kernel.org
Subject: [PATCH 0/2] md: it panic after reshape from raid1 to raid5
Date: Thu, 9 Dec 2021 13:55:22 +0800 [thread overview]
Message-ID: <1639029324-4026-1-git-send-email-xni@redhat.com> (raw)
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
next reply other threads:[~2021-12-09 5:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-09 5:55 Xiao Ni [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1639029324-4026-1-git-send-email-xni@redhat.com \
--to=xni@redhat.com \
--cc=guoqing.jiang@linux.dev \
--cc=linux-raid@vger.kernel.org \
--cc=ncroxon@redhat.com \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).