lkml.org 
[lkml]   [2004]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] QLogic ISP2x00: remove needless busyloop
Date
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@hp.com.

===== 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.047 / U:43.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site