Release the rmap list lock after cleaning the head entry in MmDeleteAllRmaps. This...
authorHartmut Birr <osexpert@googlemail.com>
Tue, 6 Dec 2005 18:39:17 +0000 (18:39 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Tue, 6 Dec 2005 18:39:17 +0000 (18:39 +0000)
svn path=/trunk/; revision=19932

reactos/ntoskrnl/mm/rmap.c

index 2c3e160..402706b 100644 (file)
@@ -463,6 +463,7 @@ MmDeleteAllRmaps(PFN_TYPE Page, PVOID Context,
       KEBUGCHECK(0);
    }
    MmSetRmapListHeadPage(Page, NULL);
+   ExReleaseFastMutex(&RmapListLock);
    while (current_entry != NULL)
    {
       previous_entry = current_entry;
@@ -483,7 +484,6 @@ MmDeleteAllRmaps(PFN_TYPE Page, PVOID Context,
          InterlockedExchangeAddUL(&Process->Vm.WorkingSetSize, -PAGE_SIZE);
       }
    }
-   ExReleaseFastMutex(&RmapListLock);
 }
 
 VOID