mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
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:
parent
efeb01e35f
commit
ad419a669d
2 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue