mtx: fixup r313278, the assignemnt was supposed to go inside the loop

This commit is contained in:
Mateusz Guzik 2017-02-05 09:53:13 +00:00
parent cae4ab7f37
commit dc0896512c

View File

@ -782,9 +782,9 @@ thread_lock_flags_(struct thread *td, int opts, const char *file, int line)
#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,