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();
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to