Thread (9 messages) flat view 9 messages, 5 authors, 2012-08-10

Re: [PATCH][XFRM] Replace rwlock on xfrm_policy_afinfo with rcu

From: David Miller <davem@davemloft.net>
Date: 2012-08-07 23:21:39

From: Priyanka Jain <redacted>
Date: Tue, 7 Aug 2012 10:51:44 +0530
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 <redacted>
This patch doesn't apply to the net-next tree, please respin.

Also:
-			xfrm_policy_afinfo[afinfo->family] = NULL;
+			rcu_assign_pointer(xfrm_policy_afinfo[afinfo->family],
+				NULL);
Indent that NULL argument properly, it must line up with the first
column after the openning '(' on the previous line.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help