cvs commit: src/sys/kern kern_acct.c
Robert Watson
rwatson at FreeBSD.org
Fri Jan 7 20:45:58 PST 2005
rwatson 2005-01-08 04:45:57 UTC
FreeBSD src repository
Modified files:
sys/kern kern_acct.c
Log:
In acct_process(), do a lockless read of acctvp to see if it's NULL
before deciding to do more expensive locking to account for process
exit. This acceptable minor race avoids two mutex operations in
that highly common case of accounting not being enabled.
MFC after: 2 weeks
Revision Changes Path
1.73 +12 -1 src/sys/kern/kern_acct.c
More information about the cvs-src
mailing list