Kernel: Make sys$pipe() 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:20:11 +02:00
commit 307932857e
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$pipe(int pipefd[2], int flags)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
VERIFY_NO_PROCESS_BIG_LOCK(this)
TRY(require_promise(Pledge::stdio));
// Reject flags other than O_CLOEXEC, O_NONBLOCK