Date: Sat, 25 Dec 2004 22:23:13 +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: <200412252223.iBPMNDbr069125@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004-12-25 22:23:13 UTC
FreeBSD src repository
Modified files:
sys/netinet tcp_input.c
Log:
Revert parts of tcp_input.c:1.255 associated with the header predicted
cases for tcp_input():
While it is true that the pcbinfo lock provides a pseudo-reference to
inpcbs, both the inpcb and pcbinfo locks are required to free an
un-referenced inpcb. As such, we can release the pcbinfo lock as
long as the inpcb remains locked with the confidence that it will not
be garbage-collected. This leads to a less conservative locking
strategy that should reduce contention on the TCP pcbinfo lock.
Discussed with: sam
Revision Changes Path
1.262 +7 -2 src/sys/netinet/tcp_input.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412252223.iBPMNDbr069125>
