mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-18 07:23:22 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/ad419a669d1 Pull-request: https://github.com/SerenityOS/serenity/pull/9236 Reviewed-by: https://github.com/tomuta ✅
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…
Reference in a new issue