mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
Kernel: Mark sys$msync 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
1dae6a2e4a
commit
3f89a1b131
2 changed files with 2 additions and 1 deletions
|
@ -606,6 +606,7 @@ ErrorOr<FlatPtr> Process::sys$annotate_mapping(Userspace<void*> address, int fla
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$msync(Userspace<void*> address, size_t size, int flags)
|
||||
{
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
if ((flags & (MS_SYNC | MS_ASYNC | MS_INVALIDATE)) != flags)
|
||||
return EINVAL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue