You need to sign in or sign up before continuing.
  • Paul E. McKenney's avatar
    kcsan: Add example to data_race() kerneldoc header · 020e6c22
    Paul E. McKenney authored
    
    
    Although the data_race() kerneldoc header accurately states what it does,
    some of the implications and usage patterns are non-obvious.  Therefore,
    add a brief locking example and also state how to have KCSAN ignore
    accesses while also preventing the compiler from folding, spindling,
    or otherwise mutilating the access.
    
    [ paulmck: Apply Bart Van Assche feedback. ]
    [ paulmck: Apply feedback from Marco Elver. ]
    Reported-by: default avatarBart Van Assche <bvanassche@acm.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Cc: Marco Elver <elver@google.com>
    Cc: Breno Leitao <leitao@debian.org>
    Cc: Jens Axboe <axboe@kernel.dk>
    020e6c22
access-marking.txt 21.3 KB