[NTOSKRNL:CC] Pinsupport Optimize Spinlock
Use more optimized KeAcquireInStackQueuedSpinLock for better performance
This commit is contained in:
parent
62ebdde712
commit
8a9e450310
@ -169,7 +169,7 @@ CcSetDirtyPinnedData(
|
|||||||
Mutex = &SharedCacheMap->BcbLock;
|
Mutex = &SharedCacheMap->BcbLock;
|
||||||
|
|
||||||
/* Acquire the BCB lock */
|
/* Acquire the BCB lock */
|
||||||
OldIrql = KeAcquireQueuedSpinLock(LockQueueMasterLock); // KeAcquireInStackQueuedSpinLock((PKSPIN_LOCK)(v6 + 184), &LockHandle)
|
KeAcquireInStackQueuedSpinLock(&SharedCacheMap->BcbSpinLock, &LockHandle);
|
||||||
|
|
||||||
KeAcquireQueuedSpinLockAtDpcLevel((ULONG_PTR)&KeGetPcr()->Prcb->LockQueue[5]);
|
KeAcquireQueuedSpinLockAtDpcLevel((ULONG_PTR)&KeGetPcr()->Prcb->LockQueue[5]);
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ CcSetDirtyPinnedData(
|
|||||||
|
|
||||||
/* Release the BCB lock */
|
/* Release the BCB lock */
|
||||||
|
|
||||||
KeReleaseQueuedSpinLock(LockQueueMasterLock, OldIrql); // KeAcquireInStackQueuedSpinLock
|
KeReleaseInStackQueuedSpinLock(&LockHandle);
|
||||||
|
|
||||||
/* Move to the next BCB */
|
/* Move to the next BCB */
|
||||||
BcbArray++;
|
BcbArray++;
|
||||||
|
Loading…
Reference in New Issue
Block a user