Thread (29 messages) 29 messages, 2 authors, 2023-09-28

Re: [PATCH -next v3 01/25] md: use READ_ONCE/WRITE_ONCE for 'suspend_lo' and 'suspend_hi'

From: Song Liu <song@kernel.org>
Date: 2023-09-28 15:54:26
Also in: dm-devel, lkml

On Wed, Sep 27, 2023 at 11:22 PM Yu Kuai [off-list ref] wrote:
From: Yu Kuai <redacted>

Because reading 'suspend_lo' and 'suspend_hi' from md_handle_request()
is not protected, use READ_ONCE/WRITE_ONCE to prevent reading abnormal
value.
I rephrase this a bit:

Protect 'suspend_lo' and 'suspend_hi' with READ_ONCE/WRITE_ONCE to prevent
reading abnormal values.

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