[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Mon, 25 May 2015 16:52:15 +0000 (16:52 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 25 May 2015 16:52:15 +0000 (16:52 +0000)
If IRP can't wait, queue it

svn path=/trunk/; revision=67909

reactos/drivers/filesystems/ntfs/create.c

index d1d3825..1db8d1d 100644 (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,