lkml.org 
[lkml]   [2023]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH -next v3 01/25] md: use READ_ONCE/WRITE_ONCE for 'suspend_lo' and 'suspend_hi'
    On Wed, Sep 27, 2023 at 11:22 PM Yu Kuai <yukuai1@huaweicloud.com> wrote:
    >
    > From: Yu Kuai <yukuai3@huawei.com>
    >
    > 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

    \
     
     \ /
      Last update: 2023-09-28 17:55    [W:2.880 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site