mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
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:
parent
355911c44e
commit
9c1ee8cbd1
Notes:
sideshowbarker
2024-07-19 17:03:35 +09:00
Author: https://github.com/jamesbellamy99 Commit: https://github.com/SerenityOS/serenity/commit/9c1ee8cbd14 Pull-request: https://github.com/SerenityOS/serenity/pull/14955
2 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue