[NTOS:CC] CcMdl*Complete(): Return if FastIO succeeded (#3303)

CORE-17342
This commit is contained in:
Serge Gautherie 2020-10-31 15:18:02 +01:00 committed by GitHub
parent cef57d3c44
commit 81be201d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,9 +102,13 @@ CcMdlReadComplete (
if (FastDispatch && FastDispatch->MdlReadComplete) if (FastDispatch && FastDispatch->MdlReadComplete)
{ {
/* Use the fast path */ /* Use the fast path */
FastDispatch->MdlReadComplete(FileObject, if (FastDispatch->MdlReadComplete(FileObject,
MdlChain, MdlChain,
DeviceObject); DeviceObject))
{
/* Request was handled */
return;
}
} }
/* Use slow path */ /* Use slow path */
@ -132,10 +136,14 @@ CcMdlWriteComplete (
if (FastDispatch && FastDispatch->MdlWriteComplete) if (FastDispatch && FastDispatch->MdlWriteComplete)
{ {
/* Use the fast path */ /* Use the fast path */
FastDispatch->MdlWriteComplete(FileObject, if (FastDispatch->MdlWriteComplete(FileObject,
FileOffset, FileOffset,
MdlChain, MdlChain,
DeviceObject); DeviceObject))
{
/* Request was handled */
return;
}
} }
/* Use slow path */ /* Use slow path */