summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-04-03 18:29:13 +0200
committerAndreas Kling <kling@serenityos.org>2023-04-04 10:33:42 +0200
commit46ab245e745ba3a90b0a6e755dcd1dc34dc38850 (patch)
tree2c4d5d0021a289d23a06b5966dbe8dc59659e715 /Kernel
parent33711655885dd4450120272d872972fba5f78292 (diff)
downloadserenity-46ab245e745ba3a90b0a6e755dcd1dc34dc38850.zip
Kernel: Mark sys$getrusage as not needing the big lock
Same deal as sys$times, nothing here that needs locking at the moment.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/API/Syscall.h2
-rw-r--r--Kernel/Syscalls/resource.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index bd0f4a48c3..c2f1d6d456 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -103,7 +103,7 @@ enum class NeedsBigProcessLock {
S(getrandom, NeedsBigProcessLock::No) \
S(getresgid, NeedsBigProcessLock::No) \
S(getresuid, NeedsBigProcessLock::No) \
- S(getrusage, NeedsBigProcessLock::Yes) \
+ S(getrusage, NeedsBigProcessLock::No) \
S(getsid, NeedsBigProcessLock::No) \
S(getsockname, NeedsBigProcessLock::Yes) \
S(getsockopt, NeedsBigProcessLock::No) \
diff --git a/Kernel/Syscalls/resource.cpp b/Kernel/Syscalls/resource.cpp
index 664f21b06d..b7ab629632 100644
--- a/Kernel/Syscalls/resource.cpp
+++ b/Kernel/Syscalls/resource.cpp
@@ -11,7 +11,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$getrusage(int who, Userspace<rusage*> user_usage)
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
+ VERIFY_NO_PROCESS_BIG_LOCK(this);
rusage usage {};