- Fixed the counting of pending irps.

svn path=/trunk/; revision=9644
This commit is contained in:
Hartmut Birr 2004-06-07 20:03:00 +00:00
parent ba3d08e286
commit a51ef0df37

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: scsiport.c,v 1.58 2004/06/07 16:37:07 hbirr Exp $ /* $Id: scsiport.c,v 1.59 2004/06/07 20:03:00 hbirr Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -2811,6 +2811,7 @@ SpiProcessRequests(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
{ {
Srb = NextIrp->Tail.Overlay.DriverContext[3]; Srb = NextIrp->Tail.Overlay.DriverContext[3];
NextIrp->Tail.Overlay.DriverContext[2] = (PVOID)Srb->QueueSortKey; NextIrp->Tail.Overlay.DriverContext[2] = (PVOID)Srb->QueueSortKey;
LunExtension = Srb->OriginalRequest;
ListEntry = DeviceExtension->PendingIrpListHead.Flink; ListEntry = DeviceExtension->PendingIrpListHead.Flink;
while (ListEntry != DeviceExtension->PendingIrpListHead.Flink) while (ListEntry != DeviceExtension->PendingIrpListHead.Flink)
@ -2823,6 +2824,8 @@ SpiProcessRequests(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
ListEntry = ListEntry->Flink; ListEntry = ListEntry->Flink;
} }
InsertTailList(ListEntry, (PLIST_ENTRY)&NextIrp->Tail.Overlay.DriverContext[0]); InsertTailList(ListEntry, (PLIST_ENTRY)&NextIrp->Tail.Overlay.DriverContext[0]);
DeviceExtension->PendingIrpCount++;
LunExtension->PendingIrpCount++;
} }
while (DeviceExtension->CompleteRequestCount || while (DeviceExtension->CompleteRequestCount ||