summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/realpath.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-07 17:44:27 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-08 00:19:49 +0100
commitf630d0f095552196199c7334973f57dd7d44f352 (patch)
treedf14dd4a283aeac25a6270da6a3767871b2941ee /Kernel/Syscalls/realpath.cpp
parent580d89f0930460d914b2cd617675a3f57fc7ea42 (diff)
downloadserenity-f630d0f095552196199c7334973f57dd7d44f352.zip
Kernel: Mark sys$realpath() as not needing the big lock
This syscall doesn't access any data that was implicitly protected by the big lock.
Diffstat (limited to 'Kernel/Syscalls/realpath.cpp')
-rw-r--r--Kernel/Syscalls/realpath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/realpath.cpp b/Kernel/Syscalls/realpath.cpp
index e1feed2eb7..bda04d2e8a 100644
--- a/Kernel/Syscalls/realpath.cpp
+++ b/Kernel/Syscalls/realpath.cpp
@@ -13,7 +13,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$realpath(Userspace<const Syscall::SC_realpath_params*> user_params)
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
+ VERIFY_NO_PROCESS_BIG_LOCK(this);
TRY(require_promise(Pledge::rpath));
auto params = TRY(copy_typed_from_user(user_params));