Date: Sun, 20 Apr 2008 00:21:54 +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/contrib/pf/net pf.c src/sys/netinet ip_fw2.c Message-ID: <200804200021.m3K0Lti7050661@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2008-04-20 00:21:54 UTC FreeBSD src repository Modified files: sys/contrib/pf/net pf.c sys/netinet ip_fw2.c Log: Teach pf and ipfw to use read locks in inpcbs write than write locks when reading credential data from sockets. Teach pf to unlock the pcbinfo more quickly once it has acquired an inpcb lock, as the inpcb lock is sufficient to protect the reference. Assert locks, rather than read locks or write locks, on inpcbs in subroutines--this is necessary as the inpcb may be passed down with a write lock from the protocol, or may be passed down with a read lock from the firewall lookup routine, and either is sufficient. MFC after: 3 months Revision Changes Path 1.53 +5 -6 src/sys/contrib/pf/net/pf.c 1.185 +3 -3 src/sys/netinet/ip_fw2.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804200021.m3K0Lti7050661>