Date: Wed, 22 Dec 2004 09:38:10 +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/security/mac_portacl mac_portacl.c Message-ID: <200412220938.iBM9cAfe032061@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004-12-22 09:38:10 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/security/mac_portacl mac_portacl.c
Log:
Merge mac_portacl.c:1.5 from HEAD to RELENG_5:
date: 2004/12/06 19:43:45; author: rwatson; state: Exp; lines: +19 -26
Switch from using an sx lock to a mutex for the mac_portacl rule chain:
the sx lock was used previously because we might sleep allocating
additional memory by using auto-extending sbufs. However, we no longer
do this, instead retaining the user-submitted rule string, so mutexes
can be used instead. Annotate the reason for not using the sbuf-related
rule-to-string code with a comment.
Switch to using TAILQ_CONCAT() instead of manual list copying, as it's
O(1), reducing the rule replacement step under the mutex from O(2N) to
O(2).
Remove now uneeded vnode-related includes.
MFC after: 2 weeks
Revision Changes Path
1.5.2.1 +19 -26 src/sys/security/mac_portacl/mac_portacl.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412220938.iBM9cAfe032061>
