diff options
author | csjp <csjp@FreeBSD.org> | 2004-12-10 02:17:18 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2004-12-10 02:17:18 +0000 |
commit | 9757d6d2e33eafc5b7e7b9a769a9ea364f1ba373 (patch) | |
tree | 6af87bb65aad4b431a8779d907e071957fc87a09 /sbin | |
parent | c0d8c464780b016518ec53abe9c849ed325a1e7a (diff) | |
download | FreeBSD-src-9757d6d2e33eafc5b7e7b9a769a9ea364f1ba373.zip FreeBSD-src-9757d6d2e33eafc5b7e7b9a769a9ea364f1ba373.tar.gz |
This commit adds a shared locking mechanism very similar to the
mechanism used by pfil. This shared locking mechanism will remove
a nasty lock order reversal which occurs when ucred based rules
are used which results in hard locks while mpsafenet=1.
So this removes the debug.mpsafenet=0 requirement when using
ucred based rules with IPFW.
It should be noted that this locking mechanism does not guarantee
fairness between read and write locks, and that it will favor
firewall chain readers over writers. This seemed acceptable since
write operations to firewall chains protected by this lock tend to
be less frequent than reads.
Reviewed by: andre, rwatson
Tested by: myself, seanc
Silence on: ipfw@
MFC after: 1 month
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions