sys: lockctl: oplocks

This commit is contained in:
Bill Zissimopoulos 2016-11-11 22:54:09 -08:00
parent f3894dbc7b
commit 93254bede4

View File

@ -49,6 +49,14 @@ static NTSTATUS FspFsvolLockControlRetry(
if (!Success) if (!Success)
return FspWqRepostIrpWorkItem(Irp, FspFsvolLockControlRetry, 0); return FspWqRepostIrpWorkItem(Irp, FspFsvolLockControlRetry, 0);
/* perform oplock check; we are only implementing Win7 behavior */
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp, 0, 0, 0);
if (!NT_SUCCESS(Result))
{
FspFileNodeRelease(FileNode);
return Result;
}
/* let the FSRTL package handle this one! */ /* let the FSRTL package handle this one! */
Result = FspFileNodeProcessLockIrp(FileNode, Irp); Result = FspFileNodeProcessLockIrp(FileNode, Irp);