[SCSI] libiscsi: return error passed in during iscsi recovery
authorMike Christie <michaelc@cs.wisc.edu>
Sat, 6 Sep 2008 13:39:15 +0000 (08:39 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Oct 2008 16:46:16 +0000 (11:46 -0500)
Due to patch building error on my side, we are still passing DID_BUS_BUSY
for commands that are running, when we want to return whatever the caller
of fail_all_commands wanted. This replaces the hardcoded error code with
the value that is passed in.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c

index 299e075a7b34295f6a8ea8721270a329913a3244..0b7457d558f7ba7c182220d71cc4909def077a5c 100644 (file)
@@ -1456,7 +1456,7 @@ static void fail_all_commands(struct iscsi_conn *conn, unsigned lun,
                if (lun == task->sc->device->lun || lun == -1) {
                        debug_scsi("failing in progress sc %p itt 0x%x\n",
                                   task->sc, task->itt);
-                       fail_command(conn, task, DID_BUS_BUSY << 16);
+                       fail_command(conn, task, error << 16);
                }
        }
 }
This page took 0.028443 seconds and 5 git commands to generate.