svn commit: r313279 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Sun Feb 5 09:53:14 UTC 2017
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,
More information about the svn-src-all
mailing list