net: Add a flow_cache_flush_deferred function
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 21 Dec 2011 21:48:08 +0000 (16:48 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:29 +0000 (14:17 -0800)
commit6561c4fa576a9e83f4e2faf7b62dbd1d9b598c39
treed99d3854ca8ea3b7b37d4c5ba5589f13c7ee8775
parentfd4199603bbc8851051b45299b7cf73b07b4daac
net: Add a flow_cache_flush_deferred function

[ Upstream commit c0ed1c14a72ca9ebacd51fb94a8aca488b0d361e ]

flow_cach_flush() might sleep but can be called from
atomic context via the xfrm garbage collector. So add
a flow_cache_flush_deferred() function and use this if
the xfrm garbage colector is invoked from within the
packet path.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/flow.h
net/core/flow.c
net/xfrm/xfrm_policy.c