[ros-diffs] [hbirr] 19932: Release the rmap list lock after cleaning the head entry in MmDeleteAllRmaps. This may fix bug #1071.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Tue Dec 6 19:39:20 CET 2005


Release the rmap list lock after cleaning the head entry in
MmDeleteAllRmaps. This may fix bug #1071.
Modified: trunk/reactos/ntoskrnl/mm/rmap.c
  _____  

Modified: trunk/reactos/ntoskrnl/mm/rmap.c
--- trunk/reactos/ntoskrnl/mm/rmap.c	2005-12-06 16:41:53 UTC (rev
19931)
+++ trunk/reactos/ntoskrnl/mm/rmap.c	2005-12-06 18:39:17 UTC (rev
19932)
@@ -463,6 +463,7 @@

       KEBUGCHECK(0);
    }
    MmSetRmapListHeadPage(Page, NULL);
+   ExReleaseFastMutex(&RmapListLock);
    while (current_entry != NULL)
    {
       previous_entry = current_entry;
@@ -483,7 +484,6 @@
          InterlockedExchangeAddUL(&Process->Vm.WorkingSetSize,
-PAGE_SIZE);
       }
    }
-   ExReleaseFastMutex(&RmapListLock);
 }
 
 VOID
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051206/32bc01bb/attachment.html


More information about the Ros-diffs mailing list