sys: FspIopRetryPrepareIrp()

This commit is contained in:
Bill Zissimopoulos
2016-01-27 16:57:48 -08:00
parent dde82a1081
commit b2e6ec0f44
4 changed files with 16 additions and 5 deletions

View File

@ -405,13 +405,10 @@ NTSTATUS FspFsvolCreatePrepare(
FileObject = FspIopRequestContext(Request, RequestFileObject);
/* lock the FileNode for overwriting */
Success = FspFileNodeTryAcquireExclusive(FileNode, Both);
Success = DEBUGRANDTEST(90, TRUE) && FspFileNodeTryAcquireExclusive(FileNode, Both);
if (!Success)
{
/* repost the IRP to retry later */
FSP_FSVOL_DEVICE_EXTENSION *FsvolDeviceExtension =
FspFsvolDeviceExtension(IrpSp->DeviceObject);
FspIoqPostIrpBestEffort(FsvolDeviceExtension->Ioq, Irp, &Result);
FspIopRetryPrepareIrp(Irp, &Result);
return Result;
}