From b4fefedd1db89fd664fde000be5d012474f9773a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 8 Mar 2022 16:36:42 +0100 Subject: 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. --- Kernel/Syscalls/chmod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Syscalls/chmod.cpp') 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 Process::sys$chmod(Userspace 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)); -- cgit v1.2.3