From a2a299bb9f5b29f21ca0c2bdc3a6a620e739f54c Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 6 Sep 2017 20:42:42 +0200 Subject: kern/rtmutex: fix priority propagation on unlock --- kern/rtmutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kern/rtmutex.c') 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(); } -- cgit v1.2.3