summaryrefslogtreecommitdiff
path: root/kern/rtmutex.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-09-06 20:42:42 +0200
committerRichard Braun <rbraun@sceen.net>2017-09-06 20:42:42 +0200
commit922d9451fa7104ceb97393f84918c3a186cefe4c (patch)
tree6b89dc4269c17274099592253fd6ca849ced54dd /kern/rtmutex.c
parentc4ef7cdfd1dd33674b1e3b31fa35df389a440df9 (diff)
kern/rtmutex: fix priority propagation on unlock
Diffstat (limited to 'kern/rtmutex.c')
-rw-r--r--kern/rtmutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/rtmutex.c b/kern/rtmutex.c
index 09637514..b6c4645c 100644
--- a/kern/rtmutex.c
+++ b/kern/rtmutex.c
@@ -211,7 +211,7 @@ rtmutex_unlock_slow(struct rtmutex *rtmutex)
owner = rtmutex_unlock_fast(rtmutex);
if (!(owner & RTMUTEX_CONTENDED)) {
- return;
+ goto out;
}
}
@@ -224,7 +224,7 @@ rtmutex_unlock_slow(struct rtmutex *rtmutex)
turnstile_release(turnstile);
- /* TODO Make private, use thread_set_priority_propagation_needed instead */
+out:
thread_propagate_priority();
}