Commit ea048464 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

kcsan: Add pointer to access-marking.txt to data_race() bullet



This commit references tools/memory-model/Documentation/access-marking.txt
in the bullet introducing data_race().  The access-marking.txt file
gives advice on when data_race() should and should not be used.

Suggested-by: default avatarAkira Yokosawa <akiyks@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 976aac5f
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -106,7 +106,9 @@ the below options are available:


* KCSAN understands the ``data_race(expr)`` annotation, which tells KCSAN that
* KCSAN understands the ``data_race(expr)`` annotation, which tells KCSAN that
  any data races due to accesses in ``expr`` should be ignored and resulting
  any data races due to accesses in ``expr`` should be ignored and resulting
  behaviour when encountering a data race is deemed safe.
  behaviour when encountering a data race is deemed safe.  Please see
  ``tools/memory-model/Documentation/access-marking.txt`` in the kernel source
  tree for more information.


* Disabling data race detection for entire functions can be accomplished by
* Disabling data race detection for entire functions can be accomplished by
  using the function attribute ``__no_kcsan``::
  using the function attribute ``__no_kcsan``::