xfrm: replace rwlock on xfrm_state_afinfo with rcu
authorCong Wang <amwang@redhat.com>
Wed, 16 Jan 2013 08:05:05 +0000 (16:05 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 16 Jan 2013 10:03:34 +0000 (11:03 +0100)
commit44abdc3047aecafc141dfbaf1ed4bcb77f5d1652
treed50e8326017691dee504c529b3adbaa98d72fd7c
parent0024dc5371b41abb30217bbcaa708d35f49fe273
xfrm: replace rwlock on xfrm_state_afinfo with rcu

Similar to commit 418a99ac6ad487dc9c42e6b0e85f941af56330f2
(Replace rwlock on xfrm_policy_afinfo with rcu), the rwlock
on xfrm_state_afinfo can be replaced by RCU too.

Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c