Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2003 12:54:37 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_witness.c
Message-ID:  <200303112054.h2BKsbXL081861@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2003/03/11 12:54:37 PST

  FreeBSD src repository

  Modified files:
    sys/kern             subr_witness.c 
  Log:
  Do the lock order check skip for the LOP_TRYLOCK case after the check for
  recursing on a lock instead of before.  This fixes a bug where WITNESS
  could get a little confused if you did an sx_tryslock() on a sx lock that
  you already had an slock on.  WITNESS would still function correctly but
  it could result in weirdness in the output of 'show locks'.  This also
  makes it possible for mtx_trylock() to recurse on a lock.
  
  Revision  Changes    Path
  1.143     +8 -8      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?200303112054.h2BKsbXL081861>