[PATCH] QLogic ISP2x00: remove needless busyloop

From: Bjorn Helgaas
Date: Mon Aug 09 2004 - 14:40:49 EST


There's no need to wait for an isp2x00 to recognize a fabric if
there's no isp2x00. Probably nobody will notice the unnecessary
slowdown on real hardware, but it's a significant delay on a
simulator.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxxx

===== drivers/scsi/qlogicfc.c 1.44 vs edited =====
--- 1.44/drivers/scsi/qlogicfc.c 2004-06-06 05:17:21 -06:00
+++ edited/drivers/scsi/qlogicfc.c 2004-08-09 12:23:06 -06:00
@@ -815,9 +815,11 @@
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/