diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-07-31 07:19:33 +0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-08-03 00:38:14 +0400 |
commit | 497c615abad7ee81994dd592194535aea2aad617 (patch) | |
tree | 86bb23e49071ea1bc867232d576b2d4ece31eb4d /net/ipv6/af_inet6.c | |
parent | 679e898a4742d4a4a47430b67fd68a789a73dcfd (diff) | |
download | linux-497c615abad7ee81994dd592194535aea2aad617.tar.xz |
[IPV6]: Audit all ip6_dst_lookup/ip6_dst_store calls
The current users of ip6_dst_lookup can be divided into two classes:
1) The caller holds no locks and is in user-context (UDP).
2) The caller does not want to lookup the dst cache at all.
The second class covers everyone except UDP because most people do
the cache lookup directly before calling ip6_dst_lookup. This patch
adds ip6_sk_dst_lookup for the first class.
Similarly ip6_dst_store users can be divded into those that need to
take the socket dst lock and those that don't. This patch adds
__ip6_dst_store for those (everyone except UDP/datagram) that don't
need an extra lock.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 5a0ba58b86cc..ac85e9c532c2 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -658,7 +658,7 @@ int inet6_sk_rebuild_header(struct sock *sk) return err; } - ip6_dst_store(sk, dst, NULL); + __ip6_dst_store(sk, dst, NULL); } return 0; |