Skip to content

Commit

Permalink
[SCSI] qla4xxx: Break the loop if the sendtargets list was empty
Browse files Browse the repository at this point in the history
Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Nilesh Javali authored and James Bottomley committed Jan 10, 2012
1 parent c28eaac commit f1f2e60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -4242,6 +4242,9 @@ void qla4xxx_build_ddb_list(struct scsi_qla_host *ha, int is_reset)

wtime = jiffies + (HZ * tmo);
do {
if (list_empty(&list_st))
break;

qla4xxx_remove_failed_ddb(ha, &list_st);
schedule_timeout_uninterruptible(HZ / 10);
} while (time_after(wtime, jiffies));
Expand Down

0 comments on commit f1f2e60

Please sign in to comment.