From bb02e9a7b944d4b2f254a18b4eb9a24973dae0cc Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sat, 9 Apr 2022 15:29:29 +0200 Subject: [PATCH] Kernel: Unblock big lock waiters correctly If the regular exclusive and shared lists were empty (which they always should be for the big lock), we were not unblocking any waiters. --- Kernel/Locking/Mutex.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Kernel/Locking/Mutex.cpp b/Kernel/Locking/Mutex.cpp index 19efa2b7da..45af124635 100644 --- a/Kernel/Locking/Mutex.cpp +++ b/Kernel/Locking/Mutex.cpp @@ -242,9 +242,6 @@ void Mutex::unblock_waiters(Mode previous_mode) VERIFY(m_mode == Mode::Unlocked); m_blocked_thread_lists.with([&](auto& lists) { - if (lists.exclusive.is_empty() && lists.shared.is_empty()) - return; - auto unblock_shared = [&]() { if (lists.shared.is_empty()) return false;