Date: Thu, 24 Jun 2004 01:37:04 +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/kern uipc_socket2.c src/sys/netinet tcp_input.c src/sys/sys socketvar.h Message-ID: <200406240137.i5O1b4Y6011748@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004-06-24 01:37:04 UTC FreeBSD src repository Modified files: sys/kern uipc_socket2.c sys/netinet tcp_input.c sys/sys socketvar.h Log: Introduce sbreserve_locked(), which asserts the socket buffer lock on the socket buffer having its limits adjusted. sbreserve() now acquires the lock before calling sbreserve_locked(). In soreserve(), acquire socket buffer locks across read-modify-writes of socket buffer fields, and calls into sbreserve/sbrelease; make sure to acquire in keeping with the socket buffer lock order. In tcp_mss(), acquire the socket buffer lock in the calling context so that we have atomic read-modify -write on buffer sizes. Revision Changes Path 1.135 +26 -7 src/sys/kern/uipc_socket2.c 1.244 +6 -2 src/sys/netinet/tcp_input.c 1.127 +2 -0 src/sys/sys/socketvar.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406240137.i5O1b4Y6011748>