Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jan 2005 04:45:57 +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:  <200501080445.j084jvkY093974@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501080445.j084jvkY093974>