[NTOSKRNL:CC] Pinsupport Optimize Spinlock
Use more optimized KeAcquireInStackQueuedSpinLock for better performance
This commit is contained in:
		
				
					committed by
					
						 CodingWorkshop Signing Team
						CodingWorkshop Signing Team
					
				
			
			
				
	
				
						parent
						
							62ebdde712
						
					
				
				
					commit
					8a9e450310
				
			| @@ -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++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user