]> git.baikalelectronics.ru Git - kernel.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)
commit26d7c7c5625ab1aa49dd512a1847715906e2773c
treec8de7a2dbd69efb233f1b051bdfceed7eded379a
parent5e22c3bbed21c46a568012c083130c3998548891
[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