mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
[USBSTOR]
- Do not retry commands more than once - Enable error handling in the data completion stage svn path=/trunk/; revision=55889
This commit is contained in:
parent
f051482d69
commit
1efde9717f
|
@ -159,7 +159,7 @@ USBSTOR_HandleTransferError(
|
|||
pCDB = (PCDB)Request->Cdb;
|
||||
ASSERT(pCDB);
|
||||
|
||||
if (Status != STATUS_SUCCESS)
|
||||
if (Status != STATUS_SUCCESS || Context->RetryCount >= 1)
|
||||
{
|
||||
//
|
||||
// Complete the master IRP
|
||||
|
|
|
@ -434,6 +434,7 @@ USBSTOR_DataCompletionRoutine(
|
|||
PVOID Ctx)
|
||||
{
|
||||
PIRP_CONTEXT Context;
|
||||
NTSTATUS Status;
|
||||
|
||||
|
||||
DPRINT("USBSTOR_DataCompletionRoutine Irp %p Ctx %p Status %x\n", Irp, Ctx, Irp->IoStatus.Status);
|
||||
|
@ -443,7 +444,6 @@ USBSTOR_DataCompletionRoutine(
|
|||
//
|
||||
Context = (PIRP_CONTEXT)Ctx;
|
||||
|
||||
#if 0
|
||||
if (!NT_SUCCESS(Irp->IoStatus.Status))
|
||||
{
|
||||
//
|
||||
|
@ -454,7 +454,6 @@ USBSTOR_DataCompletionRoutine(
|
|||
ASSERT(Status == STATUS_MORE_PROCESSING_REQUIRED);
|
||||
return STATUS_MORE_PROCESSING_REQUIRED;
|
||||
}
|
||||
#endif
|
||||
|
||||
//
|
||||
// send csw
|
||||
|
|
Loading…
Reference in a new issue