mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
Kernel: Mark sys$mmap as not needing the big lock
All accesses to shared mutable data are already serialized behind the process address space spinlock.
This commit is contained in:
parent
dcdcab0099
commit
3697214166
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ ErrorOr<void> Process::validate_inode_mmap_prot(int prot, bool readable_descript
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$mmap(Userspace<Syscall::SC_mmap_params const*> user_params)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue