[SOCK]: Add some notes about per-bind-bucket sock lookup.
[deliverable/linux.git] / net / ipv4 / inet_connection_sock.c
index 8d70cfbacb78470105bbc02590fc8120f7daaece..828ea211ff211b204185b52b20d1a719912d5699 100644 (file)
@@ -55,6 +55,13 @@ int inet_csk_bind_conflict(const struct sock *sk,
        struct hlist_node *node;
        int reuse = sk->sk_reuse;
 
+       /*
+        * Unlike other sk lookup places we do not check
+        * for sk_net here, since _all_ the socks listed
+        * in tb->owners list belong to the same net - the
+        * one this bucket belongs to.
+        */
+
        sk_for_each_bound(sk2, node, &tb->owners) {
                if (sk != sk2 &&
                    !inet_v6_ipv6only(sk2) &&
This page took 0.030771 seconds and 5 git commands to generate.