]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitdbfc4fb7d578d4f224faa6b60deb40804dfdc1b1
treef474094df71aa758eab9799a7809f6f07712071e
parentc19be735c99e221e00157c6db475fe007c056638
dst: no need to take reference on DST_NOCACHE dsts

Since commit f8864972126899 ("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