summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/lseek.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-08 16:39:58 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-09 16:43:00 +0100
commit7b3642d08c11db7b02f205a8b649b5ffcc609bf2 (patch)
tree19aa2864b9710d836c17754959a9dd014b5caab3 /Kernel/Syscalls/lseek.cpp
parent09e644f0ba6c6cc637bb00863bbce12b8ab03850 (diff)
downloadserenity-7b3642d08c11db7b02f205a8b649b5ffcc609bf2.zip
Kernel: Mark sys$lseek() 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/lseek.cpp')
-rw-r--r--Kernel/Syscalls/lseek.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/lseek.cpp b/Kernel/Syscalls/lseek.cpp
index 2422dce950..52e15bef50 100644
--- a/Kernel/Syscalls/lseek.cpp
+++ b/Kernel/Syscalls/lseek.cpp
@@ -11,7 +11,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$lseek(int fd, Userspace<off_t*> userspace_offset, int whence)
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
+ VERIFY_NO_PROCESS_BIG_LOCK(this);
TRY(require_promise(Pledge::stdio));
auto description = TRY(open_file_description(fd));
off_t offset;