ide/ide-tape: replace
Subsystems (5)
PATCH 3/3 ide/ide-tape: replace
Any comments would be appreciated.
Description: Uses msleep_interruptible() in place of schedule_timeout() to guarantee the task delays as expected.
drivers/ide/legacy/ide-cs.c +2 -2
@@ -43,6 +43,7 @@#include <linux/ide.h> #include <linux/hdreg.h> #include <linux/major.h> +#include <linux/delay.h> #include <asm/io.h> #include <asm/system.h>
@@ -357,8 +358,7 @@ void ide_config(dev_link_t *link)break ; } } -__set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /10 ); +msleep (100 ); }if (hd <0 ) {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 3/3 macintosh/therm_windtunnel:
Any comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/macintosh/therm_windtunnel.c +1 -2
@@ -292,8 +292,7 @@ control_loop( void *dummy )while ( x.running ) {up ( &x.lock ); -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (8 *HZ ); +msleep_interruptible (8000 );down ( &x.lock );poll_temp ();
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 3/3 md/raid1: replace
In reply to Nishanth AravamudanAny comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/md/raid1.c +1 -1
@@ -1013,7 +1013,7 @@ static int sync_request(mddev_t *mddev,* put in a delay to throttle resync. */ if (!go_faster &&waitqueue_active (&conf->wait_resume)) -schedule_timeout (HZ ); +msleep_interruptible (1000 );device_barrier (conf, sector_nr +RESYNC_SECTORS );/*
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 3/3 message/mptbase: replace
In reply to Nishanth AravamudanAny comments would be appreciated. I was recently informed that i2o_core.c was removed from the kernel, so one of my patches was obsoleted. Hence, the total number has dropped to 3.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/message/fusion/mptbase.c +14 -28
@@ -2229,8 +2229,7 @@ MakeIocReady(MPT_ADAPTER *ioc, int force }if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1 *HZ /1000 ); +msleep_interruptible (1 ); }else {mdelay (1 );/* 1 msec delay */ }
@@ -2599,8 +2598,7 @@ SendIocInit(MPT_ADAPTER *ioc, int sleepF state =mpt_GetIocState (ioc,1 );while (state !=MPI_IOC_STATE_OPERATIONAL && --cntdn) {if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1 *HZ /1000 ); +msleep_interruptible (1 ); }else {mdelay (1 ); }
@@ -2867,8 +2865,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, int s/* wait 1 msec */ if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1 *HZ /1000 ); +msleep_interruptible (1 ); }else {mdelay (1 ); }
@@ -2885,8 +2882,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, int s }/* wait 1 sec */ if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1000 *HZ /1000 ); +msleep_interruptible (1000 ); }else {mdelay (1000 ); }
@@ -2986,8 +2982,7 @@ mpt_downloadboot(MPT_ADAPTER *ioc, int sreturn 0 ; }if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (10 *HZ /1000 ); +msleep_interruptible (10 ); }else {mdelay (10 ); }
@@ -3038,8 +3033,7 @@ KickStart(MPT_ADAPTER *ioc, int force, iSendIocReset (ioc,MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET , sleepFlag);if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1000 *HZ /1000 ); +msleep_interruptible (1000 ); }else {mdelay (1000 ); }
@@ -3061,8 +3055,7 @@ KickStart(MPT_ADAPTER *ioc, int force, ireturn hard_reset_done; }if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (10 *HZ /1000 ); +msleep_interruptible (10 ); }else {mdelay (10 ); }
@@ -3133,8 +3126,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign/* wait 100 msec */ if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (100 *HZ /1000 ); +msleep_interruptible (100 ); }else {mdelay (100 ); }
@@ -3213,8 +3205,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 ); }
@@ -3241,8 +3232,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 ); }
@@ -3276,8 +3266,7 @@ mpt_diag_reset(MPT_ADAPTER *ioc, int ign/* wait 100 msec */ if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (100 *HZ /1000 ); +msleep_interruptible (100 ); }else {mdelay (100 ); }
@@ -3371,8 +3360,7 @@ SendIocReset(MPT_ADAPTER *ioc, u8 reset_ }if (sleepFlag ==CAN_SLEEP ) { -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1 *HZ /1000 ); +msleep_interruptible (1 ); }else {mdelay (1 );/* 1 msec delay */ }
@@ -3808,8 +3796,7 @@ WaitForDoorbellAck(MPT_ADAPTER *ioc, int intstat =CHIPREG_READ32 (&ioc->chip->IntStatus);if (! (intstat &MPI_HIS_IOP_DOORBELL_STATUS ))break ; -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1 *HZ /1000 ); +msleep_interruptible (1 ); count++; } }else {
@@ -3858,8 +3845,7 @@ WaitForDoorbellInt(MPT_ADAPTER *ioc, int intstat =CHIPREG_READ32 (&ioc->chip->IntStatus);if (intstat &MPI_HIS_DOORBELL_INTERRUPT )break ; -set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (1 *HZ /1000 ); +msleep_interruptible (1 ); count++; } }else {
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 18 lines · Nishanth Aravamudan
Any comments would be appreciated.
Description: Uses
msleep_interruptible()in place ofschedule_timeout()to guarantee the task delays as expected.Signed-off-by Nishanth Aravamudan <[email protected]>drivers/ide/legacy/ide-cs.c +1
-0@@ -43,6 +43,7 @@#include <linux/ide.h> #include <linux/hdreg.h> #include <linux/major.h> +#include <linux/delay.h> #include <asm/io.h> #include <asm/system.h>
drivers/ide/legacy/ide-cs.c void ide_config(dev_link_t *link) · line 364
Quoted 9 lines
drivers/ide/legacy/ide-cs.c +1
-2@@ -357,8 +358,7 @@ void ide_config(dev_link_t *link)break ; } } -__set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /10 ); +msleep (100 ); }if (hd <0 ) {
hmm this patch is same as the one before resend, it uses msleep(). did you forget to update, or is it just a comment mismatch? until feedback i keep old one for kjt. :)
a++ maks
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 28 lines · maximilian attems
Quoted 26 lines · Nishanth Aravamudan
Any comments would be appreciated.
Description: Uses
msleep_interruptible()in place ofschedule_timeout()to guarantee the task delays as expected.Signed-off-by Nishanth Aravamudan <[email protected]>drivers/ide/legacy/ide-cs.c +2
-2@@ -43,6 +43,7 @@#include <linux/ide.h> #include <linux/hdreg.h> #include <linux/major.h> +#include <linux/delay.h> #include <asm/io.h> #include <asm/system.h> @@ -357,8 +358,7 @@ void ide_config(dev_link_t *link)break ; } } -__set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /10 ); +msleep (100 ); }
Quoted 5 lines
drivers/ide/legacy/ide-cs.c void ide_config(dev_link_t *link) · line 364
Quoted 1 line
drivers/ide/legacy/ide-cs.c +0
-0if (hd <0 ) {hmm this patch is same as the one before resend, it uses
msleep(). did you forget to update, or is it just a comment mismatch? until feedback i keep old one for kjt. :)
Comment mismatch. Thanks for catching it.
-Nish
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 3/3 parport/parport_cs: replace
In reply to Nishanth AravamudanAny comments would be appreciated.
Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
drivers/parport/parport_pc.c +1 -2
@@ -168,8 +168,7 @@ static int change_mode(struct parport *pif (time_after_eq (jiffies, expire))/* The FIFO is stuck. */ return -EBUSY ; -__set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout ((HZ +99 ) /100 ); +msleep_interruptible (10 );if (signal_pending (current))break ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors