From cd0fe4bb48f3c87ce7ec1397e79b892e352ac8f1 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Mon, 3 Jul 2023 11:35:46 -0400 Subject: [PATCH] Kernel: Mark sys$poll as not needing the big lock --- Kernel/API/Syscall.h | 2 +- Kernel/Syscalls/poll.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 55df161b438..fbeedeef284 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -139,7 +139,7 @@ enum class NeedsBigProcessLock { S(perf_register_string, NeedsBigProcessLock::Yes) \ S(pipe, NeedsBigProcessLock::No) \ S(pledge, NeedsBigProcessLock::No) \ - S(poll, NeedsBigProcessLock::Yes) \ + S(poll, NeedsBigProcessLock::No) \ S(posix_fallocate, NeedsBigProcessLock::No) \ S(prctl, NeedsBigProcessLock::No) \ S(profiling_disable, NeedsBigProcessLock::Yes) \ diff --git a/Kernel/Syscalls/poll.cpp b/Kernel/Syscalls/poll.cpp index 6c529dfbc72..2ed0ac1d63f 100644 --- a/Kernel/Syscalls/poll.cpp +++ b/Kernel/Syscalls/poll.cpp @@ -17,7 +17,7 @@ using BlockFlags = Thread::FileBlocker::BlockFlags; ErrorOr Process::sys$poll(Userspace user_params) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); + VERIFY_NO_PROCESS_BIG_LOCK(this); TRY(require_promise(Pledge::stdio)); auto params = TRY(copy_typed_from_user(user_params));