Date: Sat, 22 Jan 2005 19:22:08 +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/kern kern_acct.c Message-ID: <200501221922.j0MJM8Ow085353@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-01-22 19:22:08 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/kern kern_acct.c Log: Merge kern_acct.c:1.73 from HEAD to RELENG_5: date: 2005/01/08 04:45:57; author: rwatson; state: Exp; lines: +12 -1 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. Revision Changes Path 1.71.2.1 +12 -1 src/sys/kern/kern_acct.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501221922.j0MJM8Ow085353>