]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TCP]: Document non-trivial locking path in tcp_v{4,6}_get_port().
authorDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2005 17:49:54 +0000 (10:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2005 17:49:54 +0000 (10:49 -0700)
commitd5d283751ef3c05b6766501a46800cbee84959d6
treec8de7a2dbd69efb233f1b051bdfceed7eded379a
parent89ebd197eb2cd31d6187db344d5117064e19fdde
[TCP]: Document non-trivial locking path in tcp_v{4,6}_get_port().

This trips up a lot of folks reading this code.
Put an unlikely() around the port-exhaustion test
for good measure.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c