1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

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

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())