Kernel: Remove big lock from sys$socket

With the implementation of the credentials object the socket syscall no
longer needs the big lock.
This commit is contained in:
James Bellamy 2022-08-21 15:59:31 +01:00 committed by Andreas Kling
parent 355911c44e
commit 9c1ee8cbd1
Notes: sideshowbarker 2024-07-19 17:03:35 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ enum class NeedsBigProcessLock {
S(sigreturn, NeedsBigProcessLock::Yes) \
S(sigsuspend, NeedsBigProcessLock::Yes) \
S(sigtimedwait, NeedsBigProcessLock::Yes) \
S(socket, NeedsBigProcessLock::Yes) \
S(socket, NeedsBigProcessLock::No) \
S(socketpair, NeedsBigProcessLock::No) \
S(stat, NeedsBigProcessLock::No) \
S(statvfs, NeedsBigProcessLock::No) \

View file

@ -33,7 +33,7 @@ static void setup_socket_fd(Process::OpenFileDescriptions& fds, int fd, NonnullL
ErrorOr<FlatPtr> Process::sys$socket(int domain, int type, int protocol)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
REQUIRE_PROMISE_FOR_SOCKET_DOMAIN(domain);
auto credentials = this->credentials();