Re: [PATCH ipsec] xfrm: don't call xfrm_policy_cache_flush while holding spinlock

2018-01-09 Thread Steffen Klassert
On Sat, Jan 06, 2018 at 01:13:08AM +0100, Florian Westphal wrote: > xfrm_policy_cache_flush can sleep, so it cannot be called while holding > a spinlock. We could release the lock first, but I don't see why we need > to invoke this function here in first place, the packet path won't reuse > an xds

[PATCH ipsec] xfrm: don't call xfrm_policy_cache_flush while holding spinlock

2018-01-05 Thread Florian Westphal
xfrm_policy_cache_flush can sleep, so it cannot be called while holding a spinlock. We could release the lock first, but I don't see why we need to invoke this function here in first place, the packet path won't reuse an xdst entry unless its still valid. While at it, add an annotation to xfrm_po