1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 12:08:14 +00:00

Kernel: Disable big process lock for sys$gettid()

This syscall reads a read only value from the current thread, and hence
has no need for the big process lock.
This commit is contained in:
Brian Gianforcaro 2021-07-18 11:33:35 -07:00 committed by Gunnar Beutner
parent 638598b15d
commit 5c10fb4007
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}