]> git.baikalelectronics.ru Git - kernel.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)
commit7d3199e1290d18416b0f2b300a6b9b1dcbc34b2f
treef7cb3b08d9387458bd602a6c7dd2f0fed3abea58
parent3814cc13feed38605f541ea9a2e9eb3bd013198b
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