https://git.reactos.org/?p=reactos.git;a=commitdiff;h=54f89baad4f537c4d326c…
commit 54f89baad4f537c4d326c81fe81b49b6505f9a1d
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Aug 26 22:47:48 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Aug 26 22:47:48 2018 +0200
[NTOSKRNL] When acquiring BCB shared, starve exclusive waiters
---
ntoskrnl/cc/pin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/cc/pin.c b/ntoskrnl/cc/pin.c
index 0eaf502305..3a0ee6ed9d 100644
--- a/ntoskrnl/cc/pin.c
+++ b/ntoskrnl/cc/pin.c
@@ -188,7 +188,7 @@ CcPinMappedData (
}
else
{
- Result = ExAcquireResourceSharedLite(&iBcb->Lock, BooleanFlagOn(Flags,
PIN_WAIT));
+ Result = ExAcquireSharedStarveExclusive(&iBcb->Lock, BooleanFlagOn(Flags,
PIN_WAIT));
}
return Result;