Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2017 02:25:31 +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: r311226 - head/sys/kern
Message-ID:  <201701040225.v042PVhL030650@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Jan  4 02:25:31 2017
New Revision: 311226
URL: https://svnweb.freebsd.org/changeset/base/311226

Log:
  mtx: plug open-coded mtx_lock access missed in r311172

Modified:
  head/sys/kern/kern_mutex.c

Modified: head/sys/kern/kern_mutex.c
==============================================================================
--- head/sys/kern/kern_mutex.c	Wed Jan  4 02:19:13 2017	(r311225)
+++ head/sys/kern/kern_mutex.c	Wed Jan  4 02:25:31 2017	(r311226)
@@ -545,7 +545,7 @@ __mtx_lock_sleep(volatile uintptr_t *c, 
 			    m->lock_object.lo_name);
 			do {
 				lock_delay(&lda);
-				v = m->mtx_lock;
+				v = MTX_READ_VALUE(m);
 				owner = lv_mtx_owner(v);
 			} while (v != MTX_UNOWNED && TD_IS_RUNNING(owner));
 			KTR_STATE0(KTR_SCHED, "thread",



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