Skip to contentSkip to conversation

message/mptbase: replace schedule_timeout() with

PATCH Applied Nishanth Aravamudan 2 participants 2 messages Oct 22, 2004 – Oct 24, 2004

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

PATCH 1/1 message/mptbase: replace schedule_timeout() with

Any comments would be, as always, appreciated.

-Nish

Description: Uses msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.

drivers/message/fusion/mptbase.c +1 -2
@@ -3171,8 +3171,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign
 
 				/* wait 1 sec */
 				if (sleepFlag == CAN_SLEEP) {
-					set_current_state(TASK_INTERRUPTIBLE);
-					schedule_timeout(1000 * HZ / 1000);
+					msleep_interruptible(1000);
 				} else {
 					mdelay (1000);
 				}

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

#1 lore raw
Quoted 9 lines · Nishanth Aravamudan

Any comments would be, as always, appreciated.

-Nish

Description: Uses msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.

applied to kjt,
to get further testing and to be shure it gets upstream.

thanks maks

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