1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:48:12 +00:00

Kernel: Don't require MM lock for Region::set_page_directory()

The MM lock is not required for this, it's just a simple ref-counted
pointer assignment.
This commit is contained in:
Andreas Kling 2022-08-18 17:33:21 +02:00
parent abb84b9fcd
commit 75348bdfd3
2 changed files with 0 additions and 2 deletions

View file

@ -214,7 +214,6 @@ ErrorOr<Region*> AddressSpace::allocate_region_with_vmobject(RandomizeVirtualAdd
if (prot == PROT_NONE) {
// For PROT_NONE mappings, we don't have to set up any page table mappings.
// We do still need to attach the region to the page_directory though.
SpinlockLocker mm_locker(s_mm_lock);
region->set_page_directory(page_directory());
} else {
auto result = region->map(page_directory(), ShouldFlushTLB::No);