Kernel: Mark sys$map_time_page 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:
Idan Horowitz 2023-04-04 14:02:39 +03:00
parent 0e564240a6
commit 0b14081ae1
Notes: sideshowbarker 2024-07-17 06:35:23 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ enum class NeedsBigProcessLock {
S(listen, NeedsBigProcessLock::No) \
S(lseek, NeedsBigProcessLock::No) \
S(madvise, NeedsBigProcessLock::No) \
S(map_time_page, NeedsBigProcessLock::Yes) \
S(map_time_page, NeedsBigProcessLock::No) \
S(mkdir, NeedsBigProcessLock::No) \
S(mknod, NeedsBigProcessLock::No) \
S(mmap, NeedsBigProcessLock::Yes) \

View File

@ -12,7 +12,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$map_time_page()
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
TRY(require_promise(Pledge::stdio));
auto& vmobject = TimeManagement::the().time_page_vmobject();