mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:46:17 +00:00
Fixed the 'event wait bug' in MmRequestPageMemoryConsumer.
svn path=/trunk/; revision=2658
This commit is contained in:
parent
e96e35d335
commit
3accb67df3
1 changed files with 6 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: balance.c,v 1.5 2002/01/08 00:49:00 dwelch Exp $
|
/* $Id: balance.c,v 1.6 2002/02/28 17:44:48 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top directory
|
* COPYRIGHT: See COPYING in the top directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -243,12 +243,12 @@ MmRequestPageMemoryConsumer(ULONG Consumer, BOOLEAN CanWait, PVOID* AllocatedPag
|
||||||
}
|
}
|
||||||
InsertTailList(&AllocationListHead, &Request.ListEntry);
|
InsertTailList(&AllocationListHead, &Request.ListEntry);
|
||||||
KeReleaseSpinLock(&AllocationListLock, oldIrql);
|
KeReleaseSpinLock(&AllocationListLock, oldIrql);
|
||||||
KeWaitForSingleObject(&Request.Event,
|
|
||||||
0,
|
|
||||||
KernelMode,
|
|
||||||
FALSE,
|
|
||||||
NULL);
|
|
||||||
}
|
}
|
||||||
|
KeWaitForSingleObject(&Request.Event,
|
||||||
|
0,
|
||||||
|
KernelMode,
|
||||||
|
FALSE,
|
||||||
|
NULL);
|
||||||
|
|
||||||
Page = Request.Page;
|
Page = Request.Page;
|
||||||
if (Page == NULL)
|
if (Page == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue