commit | 25c7a6d1f90e208ec27ca854b1381ed39842ec57 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Tue Nov 05 14:11:51 2019 -0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 06 16:14:48 2019 -0800 |
tree | a645c406ef309589a1c6f851ca1ba761575a00b4 | |
parent | 3828a93f5cfdf5d8a4ff9dead741e9a2871ff57b [diff] |
net: avoid potential false sharing in neighbor related code There are common instances of the following construct : if (n->confirmed != now) n->confirmed = now; A C compiler could legally remove the conditional. Use READ_ONCE()/WRITE_ONCE() to avoid this problem. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>