Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2006 19:58:18 +0000 (UTC)
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 src/sys/sys mutex.h
Message-ID:  <200607271958.k6RJwIeW014631@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2006-07-27 19:58:18 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c 
    sys/sys              mutex.h 
  Log:
  Write a magic value into mtx_lock when destroying a mutex that will force
  all other mtx_lock() operations to block.  Previously, when the mutex was
  destroyed, it would still have a valid value in mtx_lock(): either the
  unowned cookie, which would allow a subsequent mtx_lock() to succeed, or a
  pointer to the thread who destroyed the mutex if the mutex was locked when
  it was destroyed.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.174     +11 -0     src/sys/kern/kern_mutex.c
  1.84      +5 -0      src/sys/sys/mutex.h



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