mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user