[NTOSKRNL] Fix mismatching spinlock release in CcPerformReadAhead()
authorPierre Schweitzer <pierre@reactos.org>
Sun, 18 Feb 2018 18:32:08 +0000 (19:32 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 18 Feb 2018 18:32:08 +0000 (19:32 +0100)
ntoskrnl/cc/copy.c

index a3b1f88..a907340 100644 (file)
@@ -597,7 +597,7 @@ Clear:
         InterlockedAnd((volatile long *)&PrivateCacheMap->UlongFlags, 0xFFFEFFFF);
         KeReleaseSpinLockFromDpcLevel(&PrivateCacheMap->ReadAheadSpinLock);
     }
-    KeReleaseSpinLock(&PrivateCacheMap->ReadAheadSpinLock, OldIrql);
+    KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql);
 
     /* If file was locked, release it */
     if (Locked)