projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c28eaac
)
[SCSI] qla4xxx: Break the loop if the sendtargets list was empty
author
Nilesh Javali
<nilesh.javali@qlogic.com>
Fri, 16 Dec 2011 09:58:57 +0000
(
01:58
-0800)
committer
James Bottomley
<JBottomley@Parallels.com>
Tue, 10 Jan 2012 23:01:22 +0000
(17:01 -0600)
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>
drivers/scsi/qla4xxx/ql4_os.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla4xxx/ql4_os.c
b/drivers/scsi/qla4xxx/ql4_os.c
index 09b28f8513a0166799c6f1e610d49c7ab850efe9..ae5d512bf43b06f21bcd09abedd2786f1854f473 100644
(file)
--- a/
drivers/scsi/qla4xxx/ql4_os.c
+++ b/
drivers/scsi/qla4xxx/ql4_os.c
@@
-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));