mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
Kernel: Don't release/relock spinlocks repeatedly during space teardown
Grab the page directory and MM locks once at the start of address space teardown, then hold onto them across all the region unmapping work.
This commit is contained in:
parent
2323cdd914
commit
d8206c1059
3 changed files with 15 additions and 5 deletions
|
@ -179,6 +179,7 @@ public:
|
|||
Yes,
|
||||
};
|
||||
void unmap(ShouldDeallocateVirtualRange, ShouldFlushTLB = ShouldFlushTLB::Yes);
|
||||
void unmap_with_locks_held(ShouldDeallocateVirtualRange, ShouldFlushTLB, SpinlockLocker<RecursiveSpinlock>& pd_locker, SpinlockLocker<RecursiveSpinlock>& mm_locker);
|
||||
|
||||
void remap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue