Skip to content
Commit e3144ff5 authored by David S. Miller's avatar David S. Miller
Browse files

Merge branch 'rfs-lockless-annotate'



Eric Dumazet says:

====================
rfs: annotate lockless accesses

rfs runs without locks held, so we should annotate
read and writes to shared variables.

It should prevent compilers forcing writes
in the following situation:

  if (var != val)
     var = val;

A compiler could indeed simply avoid the conditional:

    var = val;

This matters if var is shared between many cpus.

v2: aligns one closing bracket (Simon)
    adds Fixes: tags (Jakub)
====================

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents ab39b113 5c3b74a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment