Skip to contentSkip to conversation

message/i2o_block: replace

PATCH New Nishanth Aravamudan 1 participant 1 message Jul 26, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 message/i2o_block: replace

I would appreciate any comments from the janitors list.

Thanks,
Nish

Applys-to: 2.6.7

Description: Uses msleep() instead of schedule_timeout() so the task is guaranteed to delay the desired time.

drivers/message/i2o/i2o_block.c +2 -2
@@ -75,6 +75,7 @@
 #include <linux/hdreg.h>
 #include <linux/spinlock.h>
 #include <linux/bio.h>
+#include <linux/delay.h>
 
 #include <linux/notifier.h>
 #include <linux/reboot.h>
@@ -1659,8 +1660,7 @@ static void i2o_block_exit(void)
 	 *	This isnt ideal at all but will do for now.
 	 */
 	 
-	set_current_state(TASK_UNINTERRUPTIBLE);
-	schedule_timeout(HZ);
+	msleep(1000);
 	
 	/*
 	 *	Flush the OSM

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors