cvs commit: src/sys/kern kern_acct.c

Robert Watson rwatson at FreeBSD.org
Sat Jan 22 11:22:09 PST 2005


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


More information about the cvs-src mailing list