IN ULONG BytesToWrite,
IN BOOLEAN Retrying)
{
+ KIRQL OldIrql;
PDEFERRED_WRITE Context;
PFSRTL_COMMON_FCB_HEADER Fcb;
/* Try to execute the posted writes */
CcPostDeferredWrites();
- /* FIXME: lock master */
+ /* Schedule a lazy writer run to handle deferred writes */
+ OldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock);
if (!LazyWriter.ScanActive)
{
CcScheduleLazyWriteScan(FALSE);
}
+ KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
}
/*