Kernel: Don't hog MM lock in Memory::Region::clone()

We don't need to hold the MM lock across all of Region::clone().
This commit is contained in:
Andreas Kling 2021-08-09 11:22:01 +02:00
parent 08b4d8f0de
commit f357fd91da
Notes: sideshowbarker 2024-07-18 07:11:29 +09:00

View file

@ -54,8 +54,6 @@ OwnPtr<Region> Region::clone()
{
VERIFY(Process::current());
ScopedSpinLock lock(s_mm_lock);
if (m_shared) {
VERIFY(!m_stack);
if (vmobject().is_inode())