summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/sync.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-08-07 16:06:07 +0300
committerAndreas Kling <kling@serenityos.org>2021-08-07 15:30:26 +0200
commit9d21c796712d4e1b22e62f79af0a63be166912ab (patch)
tree2693b24590d7826fd3503c80b779b4c06559999b /Kernel/Syscalls/sync.cpp
parent0d468f2282c1801cca04c9c81ffecaf170934a2c (diff)
downloadserenity-9d21c796712d4e1b22e62f79af0a63be166912ab.zip
Kernel: Disable big process lock for sys$sync
This syscall doesn't touch any intra-process shared resources and only calls VirtualFileSystem::sync, which is self-locking.
Diffstat (limited to 'Kernel/Syscalls/sync.cpp')
-rw-r--r--Kernel/Syscalls/sync.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/sync.cpp b/Kernel/Syscalls/sync.cpp
index 22174843f0..0e369e6ff8 100644
--- a/Kernel/Syscalls/sync.cpp
+++ b/Kernel/Syscalls/sync.cpp
@@ -11,7 +11,7 @@ namespace Kernel {
KResultOr<FlatPtr> Process::sys$sync()
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
+ VERIFY_NO_PROCESS_BIG_LOCK(this)
REQUIRE_PROMISE(stdio);
VirtualFileSystem::sync();
return 0;