]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do some re-sorting of TCP pcbinfo locking and assertions: make sure to
authorrwatson <rwatson@FreeBSD.org>
Sun, 7 Nov 2004 19:19:35 +0000 (19:19 +0000)
committerrwatson <rwatson@FreeBSD.org>
Sun, 7 Nov 2004 19:19:35 +0000 (19:19 +0000)
commit185ec80b05a613b10d5aae2da64db3082aea513d
tree03dff8c74509dc42af9bfc00eaf78b2b60b10b2a
parent71269597afb1f0a3b1547454c959449b2263d128
Do some re-sorting of TCP pcbinfo locking and assertions: make sure to
retain the pcbinfo lock until we're done using a pcb in the in-bound
path, as the pcbinfo lock acts as a pseuo-reference to prevent the pcb
from potentially being recycled.  Clean up assertions and make sure to
assert that the pcbinfo is locked at the head of code subsections where
it is needed.  Free the mbuf at the end of tcp_input after releasing
any held locks to reduce the time the locks are held.

MFC after: 3 weeks
sys/netinet/tcp_input.c
sys/netinet/tcp_reass.c