summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-09 11:22:01 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-09 11:46:31 +0200
commitf357fd91da922d3c96d8234307e8629bda0a4e45 (patch)
tree8882517d14c166e659527bf45c03cae7cd13d897
parent08b4d8f0de1b4274411e50c36d696b03fc8ccc25 (diff)
downloadserenity-f357fd91da922d3c96d8234307e8629bda0a4e45.zip
Kernel: Don't hog MM lock in Memory::Region::clone()
We don't need to hold the MM lock across all of Region::clone().
-rw-r--r--Kernel/Memory/Region.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/Memory/Region.cpp b/Kernel/Memory/Region.cpp
index aec04bc2d2..8dbb410469 100644
--- a/Kernel/Memory/Region.cpp
+++ b/Kernel/Memory/Region.cpp
@@ -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())