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:
parent
08b4d8f0de
commit
f357fd91da
1 changed files with 0 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue