Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2002 10:49:46 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_witness.c
Message-ID:  <200205201749.g4KHnk141205@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2002/05/20 10:49:46 PDT

  Modified files:
    sys/kern             subr_witness.c 
  Log:
  - Allow witness_sleep() to be called when witness hasn't been initialized
    yet.  We just return without performing any checks.
  - Don't explicitly enter and exit critical sections when walking lock
    lists.  We don't need a critical section to walk the list of sleep
    locks for a thread.  We check to see if a spin lock list is empty
    before we walk it.  If the list is empty we don't need to walk it.  If
    it isn't then we already hold at least one spin lock and are already in
    a critical section and thus don't need our own explicit critical
    section.
  
  Revision  Changes    Path
  1.115     +8 -16     src/sys/kern/subr_witness.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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