If IRP can't wait, queue it

svn path=/trunk/; revision=67909
This commit is contained in:
Pierre Schweitzer 2015-05-25 16:52:15 +00:00
parent 8034fab3df
commit c28fc5a816

View file

@ -428,6 +428,11 @@ NtfsCreate(PNTFS_IRP_CONTEXT IrpContext)
DeviceExt = DeviceObject->DeviceExtension;
if (!(IrpContext->Flags & IRPCONTEXT_CANWAIT))
{
return NtfsMarkIrpContextForQueue(IrpContext);
}
ExAcquireResourceExclusiveLite(&DeviceExt->DirResource,
TRUE);
Status = NtfsCreateFile(DeviceObject,