Thread (4 messages) 4 messages, 3 authors, 2024-01-30

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

From: Song Liu <song@kernel.org>
Date: 2024-01-30 06:49:00
Also in: lkml

On Mon, Jan 29, 2024 at 5:55 AM Li Lingfeng [off-list ref] wrote:
Friendly ping ...

Thanks

在 2023/12/29 15:05, Li Lingfeng 写道:
quoted
From: Li Lingfeng <redacted>

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 <redacted>
Sorry for the delay. Applied to md-tmp-6.9 branch.

Thanks,
Song
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help