Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2003 12:30:30 -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 kern_mutex.c
Message-ID:  <200303042030.h24KUUq0054213@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2003/03/04 12:30:30 PST

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c 
  Log:
  Properly assert that mtx_trylock() is not called on a mutex we already
  owned.  Previously the KASSERT would only trigger if we successfully
  acquired a lock that we already held.  However, _obtain_lock() fails to
  acquire locks that we already hold, so the KASSERT was never checked in
  the case it was supposed to fail.
  
  Revision  Changes    Path
  1.119     +4 -8      src/sys/kern/kern_mutex.c

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




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