Kernel: Mark sys$poll as not needing the big lock

This commit is contained in:
Lucas CHOLLET 2023-07-03 11:35:46 -04:00 committed by Andreas Kling
parent 00240cb0b3
commit cd0fe4bb48
Notes: sideshowbarker 2024-07-16 17:05:37 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -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) \

View file

@ -17,7 +17,7 @@ using BlockFlags = Thread::FileBlocker::BlockFlags;
ErrorOr<FlatPtr> Process::sys$poll(Userspace<Syscall::SC_poll_params const*> 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));