mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
Kernel: Remove big lock from sys$close
This syscall doesn't access any unprotected shared data.
This commit is contained in:
parent
0297349922
commit
9547a8e8a2
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ ErrorOr<FlatPtr> Process::sys$open(Userspace<Syscall::SC_open_params const*> use
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$close(int fd)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
auto description = TRY(open_file_description(fd));
|
||||
auto result = description->close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue