diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-09 11:22:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-09 11:46:31 +0200 |
commit | f357fd91da922d3c96d8234307e8629bda0a4e45 (patch) | |
tree | 8882517d14c166e659527bf45c03cae7cd13d897 | |
parent | 08b4d8f0de1b4274411e50c36d696b03fc8ccc25 (diff) | |
download | serenity-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.cpp | 2 |
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()) |