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.
This commit is contained in:
Jelle Raaijmakers 2022-04-09 15:29:29 +02:00 committed by Andreas Kling
parent cc77c82383
commit bb02e9a7b9

View file

@ -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;