Changed back to IoBuildSynchronousFsdRequest.
Modified: trunk/reactos/ntoskrnl/io/rw.c
_____
Modified: trunk/reactos/ntoskrnl/io/rw.c
--- trunk/reactos/ntoskrnl/io/rw.c 2005-04-05 15:08:18 UTC (rev
14502)
+++ trunk/reactos/ntoskrnl/io/rw.c 2005-04-05 15:51:02 UTC (rev
14503)
@@ -103,12 +103,13 @@
_SEH_TRY
{
- Irp = IoBuildAsynchronousFsdRequest(IRP_MJ_READ,
- FileObject->DeviceObject,
- Buffer,
- Length,
- ByteOffset,
- IoStatusBlock);
+ Irp = IoBuildSynchronousFsdRequest(IRP_MJ_READ,
+ FileObject->DeviceObject,
+ Buffer,
+ Length,
+ ByteOffset,
+ EventObject,
+ IoStatusBlock);
}
_SEH_HANDLE
{
@@ -130,13 +131,6 @@
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES :
Status;
}
- Irp->UserEvent = EventObject;
- if (FileObject->Flags & FO_SYNCHRONOUS_IO)
- {
- /* synchronous irp's are queued to requestor thread's irp
cancel/cleanup list */
- IoQueueThreadIrp(Irp);
- }
-
KeClearEvent(&FileObject->Event);
/* Trigger FileObject/Event dereferencing */
@@ -283,12 +277,13 @@
_SEH_TRY
{
- Irp = IoBuildAsynchronousFsdRequest(IRP_MJ_WRITE,
- FileObject->DeviceObject,
- Buffer,
- Length,
- ByteOffset,
- IoStatusBlock);
+ Irp = IoBuildSynchronousFsdRequest(IRP_MJ_WRITE,
+ FileObject->DeviceObject,
+ Buffer,
+ Length,
+ ByteOffset,
+ EventObject,
+ IoStatusBlock);
}
_SEH_HANDLE
{
@@ -310,13 +305,6 @@
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES :
Status;
}
- Irp->UserEvent = EventObject;
- if (FileObject->Flags & FO_SYNCHRONOUS_IO)
- {
- /* synchronous irp's are queued to requestor thread's irp
cancel/cleanup list */
- IoQueueThreadIrp(Irp);
- }
-
KeClearEvent(&FileObject->Event);
/* Trigger FileObject/Event dereferencing */
Show replies by date