Skip to content
Commit 418a99ac authored by Priyanka Jain's avatar Priyanka Jain Committed by David S. Miller
Browse files

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: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c12b395a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment