[NTOSKRNL] When acquiring BCB shared, starve exclusive waiters
authorPierre Schweitzer <pierre@reactos.org>
Sun, 26 Aug 2018 20:47:48 +0000 (22:47 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 26 Aug 2018 20:47:48 +0000 (22:47 +0200)
ntoskrnl/cc/pin.c

index 0eaf502..3a0ee6e 100644 (file)
@@ -188,7 +188,7 @@ CcPinMappedData (
     }
     else
     {
-        Result = ExAcquireResourceSharedLite(&iBcb->Lock, BooleanFlagOn(Flags, PIN_WAIT));
+        Result = ExAcquireSharedStarveExclusive(&iBcb->Lock, BooleanFlagOn(Flags, PIN_WAIT));
     }
 
     return Result;