Date: Sun, 5 Feb 2017 09:53:13 +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: r313279 - head/sys/kern Message-ID: <201702050953.v159rDt8098006@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Sun Feb 5 09:53:13 2017 New Revision: 313279 URL: https://svnweb.freebsd.org/changeset/base/313279 Log: mtx: fixup r313278, the assignemnt was supposed to go inside the loop Modified: head/sys/kern/kern_mutex.c Modified: head/sys/kern/kern_mutex.c ============================================================================== --- head/sys/kern/kern_mutex.c Sun Feb 5 09:35:17 2017 (r313278) +++ head/sys/kern/kern_mutex.c Sun Feb 5 09:53:13 2017 (r313279) @@ -782,9 +782,9 @@ 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: + v = MTX_UNOWNED; spinlock_enter(); m = td->td_lock; KASSERT(m->mtx_lock != MTX_DESTROYED,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702050953.v159rDt8098006>