]> git.baikalelectronics.ru Git - kernel.git/commit
Replace rwlock on xfrm_policy_afinfo with rcu
authorPriyanka Jain <Priyanka.Jain@freescale.com>
Sun, 12 Aug 2012 21:22:29 +0000 (21:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2012 21:57:37 +0000 (14:57 -0700)
commitf63a1db83f6ae6c3c7bdd11e555d314e33cdc78b
tree78e3d2f124a3c83c2ce03d05bb6e1fa68cce60d4
parent3d8fd70921d890e04971f93b98dc8cbb0d9ef248
Replace rwlock on xfrm_policy_afinfo with rcu

xfrm_policy_afinfo is read mosly data structure.
Write on xfrm_policy_afinfo is done only at the
time of configuration.
So rwlocks can be safely replaced with RCU.

RCUs usage optimizes the performance.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c