cvs commit: src/sys/kern kern_mutex.c src/sys/sys mutex.h
John Baldwin
jhb at FreeBSD.org
Thu Jul 27 19:58:19 UTC 2006
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
More information about the cvs-src
mailing list