public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 3ware 9000 driver update for 2.6.7-rc2-mm3
@ 2004-06-04  0:29 Adam Radford
  0 siblings, 0 replies; only message in thread
From: Adam Radford @ 2004-06-04  0:29 UTC (permalink / raw)
  To: akpm, james.bottomley; +Cc: linux-scsi

Andrew, James,

This small patch fixes the broken schedule_timeout() usage in the 3w-9xxx driver,
and replaces the calls with msleep().

--
Adam Radford
Staff Software Engineer
AMCC

diff -Naur linux-2.6.7-rc2-mm2/drivers/scsi/3w-9xxx.c linux-2.6.7-rc2-mm3/drivers/scsi/3w-9xxx.c
--- linux-2.6.7-rc2-mm2/drivers/scsi/3w-9xxx.c	2004-06-03 15:22:18.000000000 -0700
+++ linux-2.6.7-rc2-mm3/drivers/scsi/3w-9xxx.c	2004-06-03 17:22:06.000000000 -0700
@@ -50,6 +50,7 @@
    History
    -------
    2.26.02.000 - Driver cleanup for kernel submission.
+   2.26.02.001 - Replace schedule_timeout() calls with msleep().
 */
 
 #include <linux/module.h>
@@ -72,7 +73,7 @@
 #include "3w-9xxx.h"
 
 /* Globals */
-static const char *twa_driver_version="2.26.02.000";
+static const char *twa_driver_version="2.26.02.001";
 static TW_Device_Extension *twa_device_extension_list[TW_MAX_SLOT];
 static unsigned int twa_device_extension_count;
 static int twa_major = -1;
@@ -1445,7 +1446,7 @@
 		if (time_after(jiffies, before + HZ * seconds))
 			goto out;
 
-		schedule_timeout(1);
+		msleep(50);
 	}
 	retval = 0;
 out:
@@ -1473,7 +1474,7 @@
 		if (time_after(jiffies, before + HZ * seconds))
 			goto out;
 
-		schedule_timeout(1);
+		msleep(50);
 	}
 	retval = 0;
 out:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-04  0:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-04  0:29 [PATCH] 3ware 9000 driver update for 2.6.7-rc2-mm3 Adam Radford

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