Thread (24 messages) 24 messages, 3 authors, 2005-03-31

Re: RFC: IPSEC patch 0 for netlink events

From: Patrick McHardy <hidden>
Date: 2005-03-28 21:23:19

jamal wrote:
quoted hunk ↗ jump to hunk
@@ -478,6 +491,9 @@
 
 	if (x1->km.state == XFRM_STATE_ACQ) {
 		__xfrm_state_insert(x);
+		/* XXXX: We already have xfrm_state_lock
+		 * do we need to grab x->lock as well? */
+		xfrm_sa_notify(x, c, XFRM_SA_ADDED);
To answer this question: no. xfrm_state_lock can be nested in
x->lock, but not the other way around. If you want to avoid that
the state changes below you, you could notify before insertion.

Regards
Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help