ncr5380: Proceed with next command after NCR5380_select() calls scsi_done
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 3 Jan 2016 05:05:17 +0000 (16:05 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:42:55 +0000 (21:42 -0500)
commit1f1b0c74dfaf6264d239823ed5aeb8dcdd62838c
treea2546a9f0c41190abf44da820688166609fc13f8
parentac9399d09544525ff4713ab942cb44a7cea29a84
ncr5380: Proceed with next command after NCR5380_select() calls scsi_done

If a target disappears from the SCSI bus, NCR5380_select() may
subsequently fail with a time-out. In this situation, scsi_done is
called and NCR5380_select() returns 0. Both hostdata->connected and
hostdata->selecting are NULL and the main loop should proceed with
the next command in the issue queue. Clarify this logic.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/atari_NCR5380.c