瀏覽代碼

firewire: Complete SCSI commands with DID_BUS_BUSY when a bus reset happens.

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>
Kristian Høgsberg 18 年之前
父節點
當前提交
374a003928
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/firewire/fw-sbp2.c

+ 1 - 1
drivers/firewire/fw-sbp2.c

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