diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-06 20:42:42 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-06 20:42:42 +0200 |
commit | 922d9451fa7104ceb97393f84918c3a186cefe4c (patch) | |
tree | 6b89dc4269c17274099592253fd6ca849ced54dd | |
parent | c4ef7cdfd1dd33674b1e3b31fa35df389a440df9 (diff) |
kern/rtmutex: fix priority propagation on unlock
-rw-r--r-- | kern/rtmutex.c | 4 |
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(); } |