Skip to content
Commit 617787f1 authored by Yu Kuai's avatar Yu Kuai Committed by Song Liu
Browse files

md: use READ_ONCE/WRITE_ONCE for 'suspend_lo' and 'suspend_hi'



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

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231010151958.145896-2-yukuai1@huaweicloud.com
parent 9e55a22f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment