From owner-cvs-src@FreeBSD.ORG Sat Jan 22 19:22:09 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 394E616A4CE; Sat, 22 Jan 2005 19:22:09 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0989A43D48; Sat, 22 Jan 2005 19:22:09 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0MJM8iC085354; Sat, 22 Jan 2005 19:22:08 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0MJM8Ow085353; Sat, 22 Jan 2005 19:22:08 GMT (envelope-from rwatson) Message-Id: <200501221922.j0MJM8Ow085353@repoman.freebsd.org> From: Robert Watson Date: Sat, 22 Jan 2005 19:22:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/kern kern_acct.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2005 19:22:09 -0000 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