* [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace
@ 2004-09-16 23:47 Nishanth Aravamudan
2004-09-17 18:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] macintosh/therm_windtunnel: Nishanth Aravamudan
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Nishanth Aravamudan @ 2004-09-16 23:47 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 728 bytes --]
Any comments would be appreciated.
Description: Uses msleep_interruptible() in place of schedule_timeout()
to guarantee the task delays as expected.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
--- 2.6.9-rc2-vanilla/drivers/ide/legacy/ide-cs.c 2004-09-13 17:16:06.000000000 -0700
+++ 2.6.9-rc2/drivers/ide/legacy/ide-cs.c 2004-09-16 16:42:03.000000000 -0700
@@ -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) {
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 7+ messages in thread* [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] macintosh/therm_windtunnel: 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan @ 2004-09-17 18:25 ` Nishanth Aravamudan 2004-09-17 18:42 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] md/raid1: replace Nishanth Aravamudan ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: Nishanth Aravamudan @ 2004-09-17 18:25 UTC (permalink / raw) To: kernel-janitors [-- Attachment #1: Type: text/plain, Size: 626 bytes --] Any comments would be appreciated. Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> --- 2.6.9-rc1-mm4-vanilla/drivers/macintosh/therm_windtunnel.c 2004-09-09 23:05:59.000000000 -0700 +++ 2.6.9-rc1-mm4/drivers/macintosh/therm_windtunnel.c 2004-09-10 11:51:21.000000000 -0700 @@ -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(); [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] md/raid1: replace 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan 2004-09-17 18:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] macintosh/therm_windtunnel: Nishanth Aravamudan @ 2004-09-17 18:42 ` Nishanth Aravamudan 2004-09-20 23:15 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] message/mptbase: replace Nishanth Aravamudan ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: Nishanth Aravamudan @ 2004-09-17 18:42 UTC (permalink / raw) To: kernel-janitors [-- Attachment #1: Type: text/plain, Size: 639 bytes --] Any comments would be appreciated. Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> --- 2.6.9-rc1-mm4-vanilla/drivers/md/raid1.c 2004-09-09 23:05:58.000000000 -0700 +++ 2.6.9-rc1-mm4/drivers/md/raid1.c 2004-09-10 11:51:56.000000000 -0700 @@ -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); /* [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] message/mptbase: replace 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan 2004-09-17 18:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] macintosh/therm_windtunnel: Nishanth Aravamudan 2004-09-17 18:42 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] md/raid1: replace Nishanth Aravamudan @ 2004-09-20 23:15 ` Nishanth Aravamudan 2004-09-21 19:12 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace maximilian attems ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: Nishanth Aravamudan @ 2004-09-20 23:15 UTC (permalink / raw) To: kernel-janitors [-- Attachment #1: Type: text/plain, Size: 4521 bytes --] Any 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. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> --- 2.6.9-rc1-mm4-vanilla/drivers/message/fusion/mptbase.c 2004-09-09 23:05:59.000000000 -0700 +++ 2.6.9-rc1-mm4/drivers/message/fusion/mptbase.c 2004-09-10 11:59:42.000000000 -0700 @@ -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 s return 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, i SendIocReset(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, i return 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 { [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan ` (2 preceding siblings ...) 2004-09-20 23:15 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] message/mptbase: replace Nishanth Aravamudan @ 2004-09-21 19:12 ` maximilian attems 2004-09-21 20:40 ` Nishanth Aravamudan 2004-09-24 23:05 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] parport/parport_cs: replace Nishanth Aravamudan 5 siblings, 0 replies; 7+ messages in thread From: maximilian attems @ 2004-09-21 19:12 UTC (permalink / raw) To: kernel-janitors [-- Attachment #1: Type: text/plain, Size: 1012 bytes --] On Thu, 16 Sep 2004, Nishanth Aravamudan wrote: > Any comments would be appreciated. > > Description: Uses msleep_interruptible() in place of schedule_timeout() > to guarantee the task delays as expected. > > Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> > > --- 2.6.9-rc2-vanilla/drivers/ide/legacy/ide-cs.c 2004-09-13 17:16:06.000000000 -0700 > +++ 2.6.9-rc2/drivers/ide/legacy/ide-cs.c 2004-09-16 16:42:03.000000000 -0700 > @@ -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) { 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 [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan ` (3 preceding siblings ...) 2004-09-21 19:12 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace maximilian attems @ 2004-09-21 20:40 ` Nishanth Aravamudan 2004-09-24 23:05 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] parport/parport_cs: replace Nishanth Aravamudan 5 siblings, 0 replies; 7+ messages in thread From: Nishanth Aravamudan @ 2004-09-21 20:40 UTC (permalink / raw) To: kernel-janitors [-- Attachment #1: Type: text/plain, Size: 1184 bytes --] On Tue, Sep 21, 2004 at 09:12:59PM +0200, maximilian attems wrote: > On Thu, 16 Sep 2004, Nishanth Aravamudan wrote: > > > Any comments would be appreciated. > > > > Description: Uses msleep_interruptible() in place of schedule_timeout() > > to guarantee the task delays as expected. > > > > Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> > > > > --- 2.6.9-rc2-vanilla/drivers/ide/legacy/ide-cs.c 2004-09-13 17:16:06.000000000 -0700 > > +++ 2.6.9-rc2/drivers/ide/legacy/ide-cs.c 2004-09-16 16:42:03.000000000 -0700 > > @@ -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) { > > 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 [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] parport/parport_cs: replace 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan ` (4 preceding siblings ...) 2004-09-21 20:40 ` Nishanth Aravamudan @ 2004-09-24 23:05 ` Nishanth Aravamudan 5 siblings, 0 replies; 7+ messages in thread From: Nishanth Aravamudan @ 2004-09-24 23:05 UTC (permalink / raw) To: kernel-janitors [-- Attachment #1: Type: text/plain, Size: 705 bytes --] Any comments would be appreciated. Description: Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> --- 2.6.9-rc1-mm4-vanilla/drivers/parport/parport_pc.c 2004-09-09 23:05:51.000000000 -0700 +++ 2.6.9-rc1-mm4/drivers/parport/parport_pc.c 2004-09-10 15:32:30.000000000 -0700 @@ -168,8 +168,7 @@ static int change_mode(struct parport *p if (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; } [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org http://lists.osdl.org/mailman/listinfo/kernel-janitors ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-24 23:05 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-09-16 23:47 [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace Nishanth Aravamudan 2004-09-17 18:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] macintosh/therm_windtunnel: Nishanth Aravamudan 2004-09-17 18:42 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] md/raid1: replace Nishanth Aravamudan 2004-09-20 23:15 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] message/mptbase: replace Nishanth Aravamudan 2004-09-21 19:12 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] ide/ide-tape: replace maximilian attems 2004-09-21 20:40 ` Nishanth Aravamudan 2004-09-24 23:05 ` [Kernel-janitors] [PATCH 2.6.9-rc2 3/3] parport/parport_cs: replace Nishanth Aravamudan
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.