Re: [PATCH] md: get rdev->mddev with READ_ONCE()

From: Song Liu
Date: Tue Jan 30 2024 - 01:49:13 EST


On Mon, Jan 29, 2024 at 5:55 AM Li Lingfeng <lilingfeng@huaweicloudcom> wrote:
>
> Friendly ping ...
>
> Thanks
>
> 在 2023/12/29 15:05, Li Lingfeng 写道:
> > From: Li Lingfeng <lilingfeng3@xxxxxxxxxx>
> >
> > 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@xxxxxxxxxx>

Sorry for the delay. Applied to md-tmp-6.9 branch.

Thanks,
Song