Skip to content

Commit aff8ad5

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fix from James Bottomley: "Just one fix: a qlogic busy wait regression" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: qla2xxx: fix busy wait regression
2 parents eb74926 + 975f7d4 commit aff8ad5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/scsi/qla2xxx/qla_os.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,9 @@ qla2xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd)
734734
* Return target busy if we've received a non-zero retry_delay_timer
735735
* in a FCP_RSP.
736736
*/
737-
if (time_after(jiffies, fcport->retry_delay_timestamp))
737+
if (fcport->retry_delay_timestamp == 0) {
738+
/* retry delay not set */
739+
} else if (time_after(jiffies, fcport->retry_delay_timestamp))
738740
fcport->retry_delay_timestamp = 0;
739741
else
740742
goto qc24_target_busy;

0 commit comments

Comments
 (0)