mtx: fixup r313278, the assignemnt was supposed to go inside the loop
This commit is contained in:
parent
cae4ab7f37
commit
dc0896512c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user