public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] QLogic ISP2x00: remove needless busyloop
@ 2004-08-09 18:52 Bjorn Helgaas
  2004-08-09 20:03 ` Christoph Hellwig
  0 siblings, 1 reply; 11+ messages in thread
From: Bjorn Helgaas @ 2004-08-09 18:52 UTC (permalink / raw)
  To: Andrew Morton; +Cc: ehm, grif, linux-kernel

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
 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-08-09 22:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-09 18:52 [PATCH] QLogic ISP2x00: remove needless busyloop Bjorn Helgaas
2004-08-09 20:03 ` Christoph Hellwig
2004-08-09 20:19   ` Bjorn Helgaas
2004-08-09 20:21     ` Christoph Hellwig
2004-08-09 21:08       ` Bjorn Helgaas
2004-08-09 21:16         ` Christoph Hellwig
2004-08-09 21:11   ` David S. Miller
2004-08-09 21:15     ` Christoph Hellwig
2004-08-09 21:20       ` David S. Miller
2004-08-09 21:27         ` Christoph Hellwig
2004-08-09 21:16     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox