firewire: Complete SCSI commands with DID_BUS_BUSY when a bus reset happens.
authorKristian Høgsberg <krh@redhat.com>
Tue, 6 Feb 2007 19:49:36 +0000 (14:49 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Mar 2007 21:02:53 +0000 (22:02 +0100)
This lets the SCSI stack retry the command when a SCSI command is
interrupted by a FireWire bus reset.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-sbp2.c

index 432c35aefc12b612f405183fb43e9fdeefe29a2b..bd64e18746854c8bc7cd8a481d1facf06ee806dc 100644 (file)
@@ -830,7 +830,7 @@ complete_command_orb(struct sbp2_orb *base_orb, struct sbp2_status *status)
                 * or when sending the write (less likely). */
                fw_notify("no command orb status, rcode=%d\n",
                          orb->base.rcode);
-               result = DID_ERROR;
+               result = DID_BUS_BUSY;
        }
 
        dma_unmap_single(device->card->device, orb->base.request_bus,