Skip to contentSkip to conversation

3ware 9000 driver update for 2.6.7-rc2-mm3

PATCH New Adam Radford 1 participant 1 message Jun 4, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 3ware 9000 driver update for 2.6.7-rc2-mm3

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

drivers/scsi/3w-9xxx.c +4 -3
diff -Naur linux-2.6.7-rc2-mm2/drivers/scsi/3w-9xxx.c linux-2.6.7-rc2-mm3/drivers/scsi/3w-9xxx.c
@@ -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: