cvs commit: src/sys/contrib/pf/net pf.c src/sys/netinet ip_fw2.c
Robert Watson
rwatson at FreeBSD.org
Sun Apr 20 00:21:55 UTC 2008
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
More information about the cvs-src
mailing list