diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-08 16:32:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-09 16:43:00 +0100 |
commit | aa381c4a677ba2504ad06587b9978bc03d1ffead (patch) | |
tree | 12ec16e68a84dd40ed5938cf248504a4b524ddb3 /Kernel/Syscalls/chmod.cpp | |
parent | d074aae422cf39974d0658ced35443bb1e520bb9 (diff) | |
download | serenity-aa381c4a677ba2504ad06587b9978bc03d1ffead.zip |
Kernel: Mark sys$fchmod() 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/chmod.cpp')
-rw-r--r-- | Kernel/Syscalls/chmod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/chmod.cpp b/Kernel/Syscalls/chmod.cpp index ac86e262bc..8219d34301 100644 --- a/Kernel/Syscalls/chmod.cpp +++ b/Kernel/Syscalls/chmod.cpp @@ -34,7 +34,7 @@ ErrorOr<FlatPtr> Process::sys$chmod(Userspace<Syscall::SC_chmod_params const*> u ErrorOr<FlatPtr> Process::sys$fchmod(int fd, mode_t mode) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); + VERIFY_NO_PROCESS_BIG_LOCK(this); TRY(require_promise(Pledge::fattr)); auto description = TRY(open_file_description(fd)); TRY(description->chmod(mode)); |