- Temporarily disable queueing IRPs to their threads, since raising to APC_LEVEL...
authorAlex Ionescu <aionescu@gmail.com>
Sun, 2 Jul 2006 18:47:54 +0000 (18:47 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 2 Jul 2006 18:47:54 +0000 (18:47 +0000)
svn path=/trunk/; revision=22774

reactos/ntoskrnl/io/iomgr/iofunc.c
reactos/ntoskrnl/io/iomgr/irp.c

index bec1aa2..b54a0cb 100644 (file)
@@ -156,7 +156,7 @@ IopPerformSynchronousRequest(IN PDEVICE_OBJECT DeviceObject,
     PAGED_CODE();\r
 \r
     /* Queue the IRP */\r
-    IopQueueIrpToThread(Irp);\r
+    //IopQueueIrpToThread(Irp);\r
 \r
     /* Update operation counts */\r
     IopUpdateOperationCount(TransferType);\r
@@ -478,7 +478,7 @@ IopQueryDeviceInformation(IN PFILE_OBJECT FileObject,
     }\r
 \r
     /* Queue the IRP */\r
-    IopQueueIrpToThread(Irp);\r
+    //IopQueueIrpToThread(Irp);\r
 \r
     /* Call the Driver */\r
     Status = IoCallDriver(FileObject->DeviceObject, Irp);\r
@@ -735,7 +735,7 @@ IoSetInformation(IN PFILE_OBJECT FileObject,
     StackPtr->Parameters.SetFile.Length = Length;\r
 \r
     /* Queue the IRP */\r
-    IopQueueIrpToThread(Irp);\r
+    //IopQueueIrpToThread(Irp);\r
 \r
     /* Call the Driver */\r
     Status = IoCallDriver(FileObject->DeviceObject, Irp);\r
index a77c9c6..6bb18da 100644 (file)
@@ -895,8 +895,8 @@ IoCancelThreadIo(IN PETHREAD Thread)
     KIRQL OldIrql;
     ULONG Retries = 3000;
     LARGE_INTEGER Interval;
-    //PLIST_ENTRY ListHead, NextEntry;
-    //PIRP Irp;
+    PLIST_ENTRY ListHead, NextEntry;
+    PIRP Irp;
     IOTRACE(IO_IRP_DEBUG,
             "%s - Canceling IRPs for Thread %p\n",
             __FUNCTION__,
@@ -906,7 +906,6 @@ IoCancelThreadIo(IN PETHREAD Thread)
     OldIrql = KfRaiseIrql(APC_LEVEL);
 
     /* Start by cancelling all the IRPs in the current thread queue. */
-#if 0
     ListHead = &Thread->IrpList;
     NextEntry = ListHead->Flink;
     while (ListHead != NextEntry)
@@ -920,7 +919,6 @@ IoCancelThreadIo(IN PETHREAD Thread)
         /* Move to the next entry */
         NextEntry = NextEntry->Flink;
     }
-#endif
 
      /* Wait 100 milliseconds */
     Interval.QuadPart = -1000000;