aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_core.h
diff options
context:
space:
mode:
authorxeb@mail.ru <xeb@mail.ru>2012-08-24 01:07:38 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-30 12:31:03 -0400
commit99469c32f79a32d8481f87be0d3c66dad286f4ec (patch)
treefe937e501fe88ba696ba21669454367d6c7b9096 /net/l2tp/l2tp_core.h
parentgianfar: fix default tx vlan offload feature flag (diff)
downloadlinux-dev-99469c32f79a32d8481f87be0d3c66dad286f4ec.tar.xz
linux-dev-99469c32f79a32d8481f87be0d3c66dad286f4ec.zip
l2tp: avoid to use synchronize_rcu in tunnel free function
Avoid to use synchronize_rcu in l2tp_tunnel_free because context may be atomic. Signed-off-by: Dmitry Kozlov <xeb@mail.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/l2tp/l2tp_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index a38ec6cdeee1..56d583e083a7 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -163,6 +163,7 @@ struct l2tp_tunnel_cfg {
struct l2tp_tunnel {
int magic; /* Should be L2TP_TUNNEL_MAGIC */
+ struct rcu_head rcu;
rwlock_t hlist_lock; /* protect session_hlist */
struct hlist_head session_hlist[L2TP_HASH_SIZE];
/* hashed list of sessions,