diff options
author | Eric Dumazet <[email protected]> | 2019-11-07 11:37:37 -0800 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2019-12-09 12:36:58 -0800 |
commit | c54a2744497db4b6887b9c905ef7aa0b3620c956 (patch) | |
tree | 467a0ddf6de4ee7d036e9748a4c6c075473932a2 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | f452ee096d95482892b101bde4fd037fa025d3cc (diff) |
list: Add hlist_unhashed_lockless()
We would like to use hlist_unhashed() from timer_pending(),
which runs without protection of a lock.
Note that other callers might also want to use this variant.
Instead of forcing a READ_ONCE() for all hlist_unhashed()
callers, add a new helper with an explicit _lockless suffix
in the name to better document what is going on.
Also add various WRITE_ONCE() in __hlist_del(), hlist_add_head()
and hlist_add_before()/hlist_add_behind() to pair with
the READ_ONCE().
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Thomas Gleixner <[email protected]>
[ paulmck: Also add WRITE_ONCE() to rculist.h. ]
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions