[ros-diffs] [arty] 44279: MiSwapInSectionPage releases the segment.

arty at svn.reactos.org arty at svn.reactos.org
Tue Nov 24 02:12:27 CET 2009


Author: arty
Date: Tue Nov 24 02:12:27 2009
New Revision: 44279

URL: http://svn.reactos.org/svn/reactos?rev=44279&view=rev
Log:
MiSwapInSectionPage releases the segment.

Modified:
    branches/arty-newcc/ntoskrnl/mm/section/data.c
    branches/arty-newcc/ntoskrnl/mm/section/image.c
    branches/arty-newcc/ntoskrnl/mm/section/pagefile.c

Modified: branches/arty-newcc/ntoskrnl/mm/section/data.c
URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section/data.c?rev=44279&r1=44278&r2=44279&view=diff
==============================================================================
--- branches/arty-newcc/ntoskrnl/mm/section/data.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/mm/section/data.c [iso-8859-1] Tue Nov 24 02:12:27 2009
@@ -523,11 +523,11 @@
 	else if (IS_SWAP_FROM_SSE(Entry))
 	{
 		Status = MiSwapInSectionPage(AddressSpace, MemoryArea, Segment, Address, &Page);
+		// MiSwapInSectionPage unlocks the section segment
 		if (Locked)
 		{
 			MmLockPage(Page);
 		}
-		MmUnlockSectionSegment(Segment);
 		DPRINT("Address 0x%.8X\n", Address);
 		return(STATUS_SUCCESS);
 	}
@@ -716,6 +716,7 @@
    return(STATUS_SUCCESS);
 }
 
+/* Unlocks section segment */
 NTSTATUS
 NTAPI
 MiSwapInSectionPage

Modified: branches/arty-newcc/ntoskrnl/mm/section/image.c
URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section/image.c?rev=44279&r1=44278&r2=44279&view=diff
==============================================================================
--- branches/arty-newcc/ntoskrnl/mm/section/image.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/mm/section/image.c [iso-8859-1] Tue Nov 24 02:12:27 2009
@@ -459,11 +459,11 @@
 	else if (IS_SWAP_FROM_SSE(Entry))
 	{
 		Status = MiSwapInSectionPage(AddressSpace, MemoryArea, Segment, Address, &Page);
+		// MiSwapInSectionPage unlocks the section segment
 		if (Locked)
 		{
 			MmLockPage(Page);
 		}
-		MmUnlockSectionSegment(Segment);
 		//DPRINT("Address 0x%.8X\n", Address);
 		return(STATUS_SUCCESS);
 	}

Modified: branches/arty-newcc/ntoskrnl/mm/section/pagefile.c
URL: http://svn.reactos.org/svn/reactos/branches/arty-newcc/ntoskrnl/mm/section/pagefile.c?rev=44279&r1=44278&r2=44279&view=diff
==============================================================================
--- branches/arty-newcc/ntoskrnl/mm/section/pagefile.c [iso-8859-1] (original)
+++ branches/arty-newcc/ntoskrnl/mm/section/pagefile.c [iso-8859-1] Tue Nov 24 02:12:27 2009
@@ -297,6 +297,7 @@
 	else if (IS_SWAP_FROM_SSE(Entry))
 	{
 		Status = MiSwapInSectionPage(AddressSpace, MemoryArea, Segment, Address, &Page);
+		// MiSwapInSectionPage unlocks the section segment
 		if (NT_SUCCESS(Status) && Locked)
 		{
 			MmLockPage(Page);




More information about the Ros-diffs mailing list