[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPhsuW6YWnG86fTRcPeeGfk219dG=Rm=LeFde0OEJJjGnqgaZA@mail.gmail.com>
Date: Mon, 29 Jan 2024 22:48:46 -0800
From: Song Liu <song@...nel.org>
To: Li Lingfeng <lilingfeng@...weicloud.com>
Cc: linux-raid@...r.kernel.org, linux-kernel@...r.kernel.org,
yukuai3@...wei.com, linan122@...wei.com, yi.zhang@...wei.com,
yangerkun@...wei.com, lilingfeng3@...wei.com
Subject: Re: [PATCH] md: get rdev->mddev with READ_ONCE()
On Mon, Jan 29, 2024 at 5:55 AM Li Lingfeng <lilingfeng@...weicloudcom> wrote:
>
> Friendly ping ...
>
> Thanks
>
> 在 2023/12/29 15:05, Li Lingfeng 写道:
> > From: Li Lingfeng <lilingfeng3@...wei.com>
> >
> > Users may get rdev->mddev by sysfs while rdev is releasing.
> > So use both READ_ONCE() and WRITE_ONCE() to prevent load/store tearing
> > and to read/write mddev atomically.
> >
> > Signed-off-by: Li Lingfeng <lilingfeng3@...wei.com>
Sorry for the delay. Applied to md-tmp-6.9 branch.
Thanks,
Song
Powered by blists - more mailing lists