summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-09-19 22:52:59 +0000
committerjhb <jhb@FreeBSD.org>2001-09-19 22:52:59 +0000
commit7418b6f0974dece312233d4ca5fd06777377bf9c (patch)
tree28c4c99db92007ff483d458e59aec83400084dd7 /sys/kern/kern_mutex.c
parente11a32487cd685fb304e41fce511f1bc61642471 (diff)
downloadFreeBSD-src-7418b6f0974dece312233d4ca5fd06777377bf9c.zip
FreeBSD-src-7418b6f0974dece312233d4ca5fd06777377bf9c.tar.gz
Fix a bug in propagate priority: the kse group pointer wasn't being
updated in the loop so the new thread always seemd to have the same priority as the original thread and no actual priorities were changed.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index bbcac94..97c6b49 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -129,6 +129,7 @@ propagate_priority(struct thread *td)
MPASS(m->mtx_lock == MTX_CONTESTED);
return;
}
+ kg = td->td_ksegrp;
MPASS(td->td_proc->p_magic == P_MAGIC);
KASSERT(td->td_proc->p_stat != SSLEEP, ("sleeping thread owns a mutex"));
OpenPOWER on IntegriCloud