git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
drivers
/
scsi
/
qlogicfc.c
diff --git
a/drivers/scsi/qlogicfc.c
b/drivers/scsi/qlogicfc.c
index
ef1fdfd
..
3a192e3
100644
(file)
--- a/
drivers/scsi/qlogicfc.c
+++ b/
drivers/scsi/qlogicfc.c
@@
-815,9
+815,11
@@
int isp2x00_detect(Scsi_Host_Template * tmpt)
some time before recognizing it is attached to a fabric */
#if ISP2x00_FABRIC
some time before recognizing it is attached to a fabric */
#if ISP2x00_FABRIC
- for (wait_time = jiffies + 5 * HZ; time_before(jiffies, wait_time);) {
- barrier();
- cpu_relax();
+ if (hosts) {
+ for (wait_time = jiffies + 5 * HZ; time_before(jiffies, wait_time);) {
+ barrier();
+ cpu_relax();
+ }
}
#endif
}
#endif