]> git.baikalelectronics.ru Git - kernel.git/commit
dst: no need to take reference on DST_NOCACHE dsts
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Sat, 6 Dec 2014 18:19:42 +0000 (19:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 21:08:17 +0000 (16:08 -0500)
commit8d2363131aebd7ce22b22b0d55d5637ee4b07d28
treef474094df71aa758eab9799a7809f6f07712071e
parent2bfcb2ecfb07b9cd8225836c116add69902ddc0f
dst: no need to take reference on DST_NOCACHE dsts

Since commit 5df34d96e64e0d ("ipv4: fix dst race in sk_dst_get()")
DST_NOCACHE dst_entries get freed by RCU. So there is no need to get a
reference on them when we are in rcu protected sections.

Cc: Eric Dumazet <edumazet@google.com>
Cc: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/dst.c
net/netfilter/ipvs/ip_vs_xmit.c