xfrm: Fix xfrm_policy_gc_lock handling.
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 4 Nov 2008 03:11:29 +0000 (19:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 03:11:29 +0000 (19:11 -0800)
commitbbb770e7ab9a436752babfc8765e422d7481be1f
treeed0531a408dd7889912b9c8d2db71c973f021529
parent19ecb6ba800765743bb4525c66562f0d30993f8d
xfrm: Fix xfrm_policy_gc_lock handling.

From: Alexey Dobriyan <adobriyan@gmail.com>

Based upon a lockdep trace by Simon Arlott.

xfrm_policy_kill() can be called from both BH and
non-BH contexts, so we have to grab xfrm_policy_gc_lock
with BH disabling.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c