Kernel: Disable big process lock for sys$sysconf

This syscall only reads constant kernel globals, and as such does not
need to hold the big lock.
This commit is contained in:
Idan Horowitz 2021-08-06 15:27:03 +03:00 committed by Andreas Kling
parent efeb01e35f
commit ad419a669d
Notes: sideshowbarker 2024-07-18 07:23:22 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ enum class NeedsBigProcessLock {
S(ptrace, NeedsBigProcessLock::Yes) \
S(sendfd, NeedsBigProcessLock::Yes) \
S(recvfd, NeedsBigProcessLock::Yes) \
S(sysconf, NeedsBigProcessLock::Yes) \
S(sysconf, NeedsBigProcessLock::No) \
S(set_process_name, NeedsBigProcessLock::Yes) \
S(disown, NeedsBigProcessLock::Yes) \
S(adjtime, NeedsBigProcessLock::Yes) \

View file

@ -11,7 +11,7 @@ namespace Kernel {
KResultOr<FlatPtr> Process::sys$sysconf(int name)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
VERIFY_NO_PROCESS_BIG_LOCK(this)
switch (name) {
case _SC_MONOTONIC_CLOCK:
return 1;