1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:07:34 +00:00

Kernel: Make sys$socketpair() not take the big lock

This system call mainly accesses the file descriptor table, and this is
already guarded by MutexProtected.
This commit is contained in:
Andreas Kling 2022-08-16 20:43:23 +02:00
parent 164c9617c3
commit ce6e93d96b
2 changed files with 2 additions and 2 deletions

View file

@ -362,7 +362,7 @@ ErrorOr<FlatPtr> Process::sys$setsockopt(Userspace<Syscall::SC_setsockopt_params
ErrorOr<FlatPtr> Process::sys$socketpair(Userspace<Syscall::SC_socketpair_params const*> user_params)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
VERIFY_NO_PROCESS_BIG_LOCK(this)
auto params = TRY(copy_typed_from_user(user_params));
if (params.domain != AF_LOCAL)