diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-08 16:36:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-09 16:43:00 +0100 |
commit | b4fefedd1db89fd664fde000be5d012474f9773a (patch) | |
tree | 06ed93e51558abc5cebac7c3f9f2ee10d87571d5 /Kernel/Syscalls/chmod.cpp | |
parent | aa381c4a677ba2504ad06587b9978bc03d1ffead (diff) | |
download | serenity-b4fefedd1db89fd664fde000be5d012474f9773a.zip |
Kernel: Mark sys$chmod() 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 8219d34301..c1f2e2fc8d 100644 --- a/Kernel/Syscalls/chmod.cpp +++ b/Kernel/Syscalls/chmod.cpp @@ -13,7 +13,7 @@ namespace Kernel { ErrorOr<FlatPtr> Process::sys$chmod(Userspace<Syscall::SC_chmod_params const*> user_params) { - VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); + VERIFY_NO_PROCESS_BIG_LOCK(this); TRY(require_promise(Pledge::fattr)); auto params = TRY(copy_typed_from_user(user_params)); auto path = TRY(get_syscall_path_argument(params.path)); |