All of lore.kernel.org
 help / color / mirror / Atom feed
From: Song Liu <song@kernel.org>
To: "Sung, KoWei" <winders@amazon.com>
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: Mon, 5 Oct 2020 00:40:54 -0700	[thread overview]
Message-ID: <CAPhsuW7+jnPkvzVsqn_Eh7TqB_HAuZRXTofar9ucj7rsqyfE9w@mail.gmail.com> (raw)
In-Reply-To: <CAPhsuW4Q-aYzUQ=Utw6XigjJ0tVbCZOjmn+Wq6hvvjXhvAiwZA@mail.gmail.com>

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;
 }

  reply	other threads:[~2020-10-05  7:41 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 [this message]
2020-10-07  7:02         ` Sung, KoWei

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=CAPhsuW7+jnPkvzVsqn_Eh7TqB_HAuZRXTofar9ucj7rsqyfE9w@mail.gmail.com \
    --to=song@kernel.org \
    --cc=hansduan@amazon.com \
    --cc=htokoyo@amazon.co.jp \
    --cc=linux-raid@vger.kernel.org \
    --cc=mfortin@amazon.com \
    --cc=saeedb@amazon.com \
    --cc=winders@amazon.com \
    /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 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.