1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:08: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

@ -280,7 +280,6 @@ void Region::unmap_with_locks_held(ShouldFlushTLB should_flush_tlb, SpinlockLock
void Region::set_page_directory(PageDirectory& page_directory)
{
VERIFY(!m_page_directory || m_page_directory == &page_directory);
VERIFY(s_mm_lock.is_locked_by_current_processor());
m_page_directory = page_directory;
}