Re: [RFC 2.6.10 4/22] xfrm: Try to offload inbound xfrm_states
From: "David S. Miller" <davem@davemloft.net>
Date: 2005-01-26 06:13:25
From: "David S. Miller" <davem@davemloft.net>
Date: 2005-01-26 06:13:25
On Sat, 22 Jan 2005 00:52:13 -0500 David Dillow [off-list ref] wrote:
quoted
Hmmm, this seems to deadlock. xfrm_state_add() is invoked with the RTNL semaphore already acquired. For example, via xfrm_user.c:xfrm_add_sa()Are you sure? It worked just fine during testing, and I don't see where in the call chain from xfrm_netlink_rcv() to xfrm_state_add() the RTNL sema is taken. Perhaps you were thinking of xfrm_cfg_sem?
My bad, you're right.