]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mpls: Cleanup the rcu usage in the code.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 7 Mar 2015 22:21:56 +0000 (16:21 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Mar 2015 23:30:06 +0000 (19:30 -0400)
commit19d0c341d9d5cd186661fef58e7264a9701ef71d
treef7cb3b08d9387458bd602a6c7dd2f0fed3abea58
parentd865616e1889d0b6528b5d9b620e13b1607003a5
mpls: Cleanup the rcu usage in the code.

Sparse was generating a lot of warnings mostly from missing annotations
in the code.  Add missing annotations and in a few cases tweak the code
for performance by moving work before loops.

This also fixes a problematic ommision of rcu_assign_pointer and
rcu_dereference.

Hopefully with complete rcu annotations any new rcu errors will stick
out like a sore thumb.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c