Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2017 09:35:17 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313278 - head/sys/kern
Message-ID:  <201702050935.v159ZHdR089926@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();



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