Kernel: Don't take MM lock in ~PageDirectory()
We don't need the MM lock to unregister a PageDirectory from the CR3 map. This is already protected by the CR3 map's own lock.
This commit is contained in:
parent
5beed613ca
commit
ac3ea277aa
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ac3ea277aa
1 changed files with 0 additions and 1 deletions
|
@ -115,7 +115,6 @@ UNMAP_AFTER_INIT void PageDirectory::allocate_kernel_directory()
|
|||
PageDirectory::~PageDirectory()
|
||||
{
|
||||
if (is_cr3_initialized()) {
|
||||
SpinlockLocker lock(s_mm_lock);
|
||||
deregister_page_directory(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue