diff options
author | xeb@mail.ru <xeb@mail.ru> | 2012-08-24 01:07:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-30 12:31:03 -0400 |
commit | 99469c32f79a32d8481f87be0d3c66dad286f4ec (patch) | |
tree | fe937e501fe88ba696ba21669454367d6c7b9096 /net/l2tp/l2tp_core.h | |
parent | e2c53be223aca36cf93eb6a0f6bafa079e78f52b (diff) |
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 'net/l2tp/l2tp_core.h')
-rw-r--r-- | net/l2tp/l2tp_core.h | 1 |
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, |