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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Dec 2011 21:48:08 +0000 (16:48 -0500)
commitc0ed1c14a72ca9ebacd51fb94a8aca488b0d361e
treee689f7fd62e7633b9b254f9a456b65a1150c6e23
parent9f28a2fc0bd77511f649c0a788c7bf9a5fd04edb
net: Add a flow_cache_flush_deferred function

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>
include/net/flow.h
net/core/flow.c
net/xfrm/xfrm_policy.c