From: "Sung, KoWei" <winders@amazon.com>
To: Song Liu <song@kernel.org>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
"Bshara, Saeed" <saeedb@amazon.com>,
"Duan, HanShen" <hansduan@amazon.com>,
"Tokoyo, Hiroshi" <htokoyo@amazon.co.jp>,
"Fortin, Mike" <mfortin@amazon.com>
Subject: Re: RAID5 issue with UBUNTU 20.04.1 on my desktop
Date: Wed, 7 Oct 2020 07:02:14 +0000 [thread overview]
Message-ID: <1602054133661.46939@amazon.com> (raw)
In-Reply-To: <CAPhsuW7+jnPkvzVsqn_Eh7TqB_HAuZRXTofar9ucj7rsqyfE9w@mail.gmail.com>
Hi, Song:
Thanks a lot for your fix.
I've tested the patch by "v4.19.149" tag from Linux kernel stable tree (kernel/git/stable/linux.git).
The test runs over 1000 rounds in 24 hours without kernel crash, so the patch should fix this issue.
Best Regards,
Winder
________________________________________
From: Song Liu <song@kernel.org>
Sent: Monday, October 5, 2020 3:40 PM
To: Sung, KoWei
Cc: linux-raid@vger.kernel.org; Bshara, Saeed; Duan, HanShen; Tokoyo, Hiroshi; Fortin, Mike
Subject: RE: [EXTERNAL] RAID5 issue with UBUNTU 20.04.1 on my desktop
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
Hi KoWei,
On Mon, Sep 28, 2020 at 10:15 AM Song Liu <song@kernel.org> wrote:
>
> On Mon, Sep 21, 2020 at 5:34 PM Sung, KoWei <winders@amazon.com> wrote:
> >
> > Hi, Song Liu:
> >
> > May I know if you're able to reproduce this issue? Thanks a lot for your help.
>
Could you please verify whether the following patch fixes it? If it
works well, please
reply with your Test-by tag.
Thanks,
Song
diff --git i/drivers/md/raid5.c w/drivers/md/raid5.c
index 66690b40818e7..39343479ac2a9 100644
--- i/drivers/md/raid5.c
+++ w/drivers/md/raid5.c
@@ -2585,8 +2585,6 @@ static int resize_stripes(struct r5conf *conf,
int newsize)
} else
err = -ENOMEM;
- mutex_unlock(&conf->cache_size_mutex);
-
conf->slab_cache = sc;
conf->active_name = 1-conf->active_name;
@@ -2628,6 +2626,8 @@ static int resize_stripes(struct r5conf *conf,
int newsize)
if (!err)
conf->pool_size = newsize;
+ mutex_unlock(&conf->cache_size_mutex);
+
return err;
}
prev parent reply other threads:[~2020-10-07 7:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-16 9:53 RAID5 issue with UBUNTU 20.04.1 on my desktop Sung, KoWei
2020-09-17 7:03 ` Song Liu
2020-09-22 0:34 ` Sung, KoWei
2020-09-28 17:15 ` Song Liu
2020-10-05 7:40 ` Song Liu
2020-10-07 7:02 ` Sung, KoWei [this message]
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=1602054133661.46939@amazon.com \
--to=winders@amazon.com \
--cc=hansduan@amazon.com \
--cc=htokoyo@amazon.co.jp \
--cc=linux-raid@vger.kernel.org \
--cc=mfortin@amazon.com \
--cc=saeedb@amazon.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).