svn commit: r313278 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Sun Feb 5 09:35:18 UTC 2017
Author: mjg
Date: Sun Feb 5 09:35:17 2017
New Revision: 313278
URL: https://svnweb.freebsd.org/changeset/base/313278
Log:
mtx: fix up _mtx_obtain_lock_fetch usage in thread lock
Since _mtx_obtain_lock_fetch no longer sets the argument to MTX_UNOWNED,
callers have to do it on their own.
Modified:
head/sys/kern/kern_mutex.c
Modified: head/sys/kern/kern_mutex.c
==============================================================================
--- head/sys/kern/kern_mutex.c Sun Feb 5 08:51:41 2017 (r313277)
+++ head/sys/kern/kern_mutex.c Sun Feb 5 09:35:17 2017 (r313278)
@@ -782,6 +782,7 @@ thread_lock_flags_(struct thread *td, in
#ifdef KDTRACE_HOOKS
spin_time -= lockstat_nsecs(&td->td_lock->lock_object);
#endif
+ v = MTX_UNOWNED;
for (;;) {
retry:
spinlock_enter();
More information about the svn-src-head
mailing list