mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 09:00:27 +00:00
Revert "[NTOS:CC] Wake up lazy scan after inserting elements in the list."
This reverts commit 6e4f83da70
.
This commit is contained in:
parent
876769fdd5
commit
470ad18825
1 changed files with 10 additions and 6 deletions
|
@ -400,6 +400,16 @@ CcCanIWrite (
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Otherwise, if there are no deferred writes yet, start the lazy writer */
|
||||
if (IsListEmpty(&CcDeferredWrites))
|
||||
{
|
||||
KIRQL OldIrql;
|
||||
|
||||
OldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
|
||||
CcScheduleLazyWriteScan(TRUE);
|
||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
|
||||
}
|
||||
|
||||
/* Initialize our wait event */
|
||||
KeInitializeEvent(&WaitEvent, NotificationEvent, FALSE);
|
||||
|
||||
|
@ -427,12 +437,6 @@ CcCanIWrite (
|
|||
&CcDeferredWriteSpinLock);
|
||||
}
|
||||
|
||||
/* Now make sure that the lazy scan writer will be active */
|
||||
OldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
|
||||
if (!LazyWriter.ScanActive)
|
||||
CcScheduleLazyWriteScan(TRUE);
|
||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
|
||||
|
||||
#if DBG
|
||||
DPRINT1("Actively deferring write for: %p\n", FileObject);
|
||||
DPRINT1("Because:\n");
|
||||
|
|
Loading…
Reference in a new issue