Date: Sun, 7 Nov 2004 19:19:35 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet tcp_input.c Message-ID: <200411071919.iA7JJZ0R010158@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004-11-07 19:19:35 UTC
FreeBSD src repository
Modified files:
sys/netinet tcp_input.c
Log:
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
Revision Changes Path
1.255 +5 -6 src/sys/netinet/tcp_input.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411071919.iA7JJZ0R010158>
