summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/API/Syscall.h2
-rw-r--r--Kernel/Syscalls/thread.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index d9b292dde3..80b5506954 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -126,7 +126,7 @@ enum class NeedsBigProcessLock {
S(getsockopt, NeedsBigProcessLock::Yes) \
S(setsockopt, NeedsBigProcessLock::Yes) \
S(create_thread, NeedsBigProcessLock::Yes) \
- S(gettid, NeedsBigProcessLock::Yes) \
+ S(gettid, NeedsBigProcessLock::No) \
S(rename, NeedsBigProcessLock::Yes) \
S(ftruncate, NeedsBigProcessLock::Yes) \
S(exit_thread, NeedsBigProcessLock::Yes) \
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp
index 488d237ecf..2fae689d90 100644
--- a/Kernel/Syscalls/thread.cpp
+++ b/Kernel/Syscalls/thread.cpp
@@ -228,7 +228,7 @@ KResultOr<FlatPtr> Process::sys$get_thread_name(pid_t tid, Userspace<char*> buff
KResultOr<FlatPtr> Process::sys$gettid()
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
+ VERIFY_NO_PROCESS_BIG_LOCK(this)
REQUIRE_PROMISE(stdio);
return Thread::current()->tid().value();
}