diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-07 21:32:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-08 00:19:49 +0100 |
commit | be7ec52ed03379f20cfa9f0564a087577bb10c0c (patch) | |
tree | 2cbdaeacbe30a35c8774c880de8b0f21717de01e /Kernel/Syscalls/stat.cpp | |
parent | 23822febd2fa62177b16aa720059bb5cdb88cb68 (diff) | |
download | serenity-be7ec52ed03379f20cfa9f0564a087577bb10c0c.zip |
Kernel: Mark sys$fstat() 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/stat.cpp')
-rw-r--r-- | Kernel/Syscalls/stat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/stat.cpp b/Kernel/Syscalls/stat.cpp index 8b7a18cc9d..f35a76df2e 100644 --- a/Kernel/Syscalls/stat.cpp +++ b/Kernel/Syscalls/stat.cpp @@ -13,7 +13,7 @@ namespace Kernel { ErrorOr<FlatPtr> Process::sys$fstat(int fd, Userspace<stat*> user_statbuf) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) + VERIFY_NO_PROCESS_BIG_LOCK(this); TRY(require_promise(Pledge::stdio)); auto description = TRY(open_file_description(fd)); auto buffer = TRY(description->stat()); |