diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-09-21 08:02:17 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-11-23 21:37:35 +0300 |
commit | 1c97be677f72b3c338312aecd36d8fff20322f32 (patch) | |
tree | 805643267b5d6cc61c8dd168c4610c554cd76a68 /include/linux/list_nulls.h | |
parent | 6cf10081220ae21175a867d446b3167bcbcb937b (diff) | |
download | linux-1c97be677f72b3c338312aecd36d8fff20322f32.tar.xz |
list: Use WRITE_ONCE() when adding to lists and hlists
Code that does lockless emptiness testing of non-RCU lists is relying
on the list-addition code to write the list head's ->next pointer
atomically. This commit therefore adds WRITE_ONCE() to list-addition
pointer stores that could affect the head's ->next pointer.
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/list_nulls.h')
0 files changed, 0 insertions, 0 deletions