Re: RAID5 issue with UBUNTU 20.04.1 on my desktop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi KoWei,

On Mon, Sep 28, 2020 at 10:15 AM Song Liu <song@xxxxxxxxxx> wrote:
>
> On Mon, Sep 21, 2020 at 5:34 PM Sung, KoWei <winders@xxxxxxxxxx> 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;
 }



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux