]> asedeno.scripts.mit.edu Git - linux.git/commit
xfrm: don't call xfrm_policy_cache_flush under xfrm_state_lock
authorArtem Savkov <asavkov@redhat.com>
Wed, 27 Sep 2017 12:25:37 +0000 (14:25 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 28 Sep 2017 07:39:05 +0000 (09:39 +0200)
commitdd269db84908d4d3f7c0efed85bf9d8939fb0b9b
tree76b910665883a8e0be8f38b79bbcd004fd6be21b
parent23e9fcfef1f3d10675acce023592796851bcaf1a
xfrm: don't call xfrm_policy_cache_flush under xfrm_state_lock

I might be wrong but it doesn't look like xfrm_state_lock is required
for xfrm_policy_cache_flush and calling it under this lock triggers both
"sleeping function called from invalid context" and "possible circular
locking dependency detected" warnings on flush.

Fixes: ec30d78c14a8 xfrm: add xdst pcpu cache
Signed-off-by: Artem Savkov <asavkov@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c