[NTOSKRNL:CC] Pinsupport Optimize Spinlock

Use more optimized KeAcquireInStackQueuedSpinLock for better performance
This commit is contained in:
2024-08-07 16:53:50 +02:00
committed by CodingWorkshop Signing Team
parent 62ebdde712
commit 8a9e450310

View File

@@ -169,7 +169,7 @@ CcSetDirtyPinnedData(
Mutex = &SharedCacheMap->BcbLock;
/* Acquire the BCB lock */
OldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock); // KeAcquireInStackQueuedSpinLock((PKSPIN_LOCK)(v6 + 184), &LockHandle)
KeAcquireInStackQueuedSpinLock(&SharedCacheMap->BcbSpinLock, &LockHandle);
KeAcquireQueuedSpinLockAtDpcLevel((ULONG_PTR)&KeGetPcr()->Prcb->LockQueue[5]);
@@ -225,7 +225,7 @@ CcSetDirtyPinnedData(
/* Release the BCB lock */
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql); // KeAcquireInStackQueuedSpinLock
KeReleaseInStackQueuedSpinLock(&LockHandle);
/* Move to the next BCB */
BcbArray++;