* [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] message/exec-osm: replace
@ 2004-09-20 22:13 Nishanth Aravamudan
2004-09-20 23:58 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] mtd/cfi_cmdset_0001: Nishanth Aravamudan
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2004-09-20 22:13 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 768 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/message/i2o/exec-osm.c 2004-09-09 23:05:59.000000000 -0700
+++ 2.6.9-rc1-mm4/drivers/message/i2o/exec-osm.c 2004-09-13 14:32:08.000000000 -0700
@@ -29,6 +29,7 @@
#include <linux/module.h>
#include <linux/i2o.h>
+#include <linux/delay.h>
struct i2o_driver i2o_exec_driver;
@@ -151,7 +152,7 @@ int i2o_msg_post_wait_mem(struct i2o_con
prepare_to_wait(&wq, &wait, TASK_INTERRUPTIBLE);
if (!iwait->complete)
- schedule_timeout(timeout * HZ);
+ msleep_interruptible(timeout * 1000);
finish_wait(&wq, &wait);
[-- 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] 5+ messages in thread* [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] mtd/cfi_cmdset_0001:
2004-09-20 22:13 [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] message/exec-osm: replace Nishanth Aravamudan
@ 2004-09-20 23:58 ` Nishanth Aravamudan
2004-09-24 23:18 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] pci hotplug/cpqphp: replace Nishanth Aravamudan
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2004-09-20 23:58 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
Any comments would be appreciated.
Description: Use msleep() 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/mtd/chips/cfi_cmdset_0001.c 2004-09-09 23:05:53.000000000 -0700
+++ 2.6.9-rc1-mm4/drivers/mtd/chips/cfi_cmdset_0001.c 2004-09-10 14:11:19.000000000 -0700
@@ -1649,7 +1649,7 @@ static int do_xxlock_oneblock(struct map
BUG();
spin_unlock(chip->mutex);
- schedule_timeout(HZ);
+ msleep(1000);
spin_lock(chip->mutex);
/* FIXME. Use a timer to check this, and return immediately. */
[-- 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] 5+ messages in thread* [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] pci hotplug/cpqphp: replace
2004-09-20 22:13 [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] message/exec-osm: replace Nishanth Aravamudan
2004-09-20 23:58 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] mtd/cfi_cmdset_0001: Nishanth Aravamudan
@ 2004-09-24 23:18 ` Nishanth Aravamudan
2004-09-27 17:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] sbus/bbc_envctrl: replace Nishanth Aravamudan
2004-09-27 23:19 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] w1/w1_family: add Nishanth Aravamudan
3 siblings, 0 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2004-09-24 23:18 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 771 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/pci/hotplug/cpqphp.h 2004-09-09 23:05:35.000000000 -0700
+++ 2.6.9-rc1-mm4/drivers/pci/hotplug/cpqphp.h 2004-09-10 15:32:45.000000000 -0700
@@ -707,9 +707,8 @@ static inline int wait_for_ctrl_irq(stru
dbg("%s - start\n", __FUNCTION__);
add_wait_queue(&ctrl->queue, &wait);
- set_current_state(TASK_INTERRUPTIBLE);
/* Sleep for up to 1 second to wait for the LED to change. */
- schedule_timeout(1*HZ);
+ msleep_interruptible(1000);
remove_wait_queue(&ctrl->queue, &wait);
if (signal_pending(current))
retval = -EINTR;
[-- 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] 5+ messages in thread* [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] sbus/bbc_envctrl: replace
2004-09-20 22:13 [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] message/exec-osm: replace Nishanth Aravamudan
2004-09-20 23:58 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] mtd/cfi_cmdset_0001: Nishanth Aravamudan
2004-09-24 23:18 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] pci hotplug/cpqphp: replace Nishanth Aravamudan
@ 2004-09-27 17:25 ` Nishanth Aravamudan
2004-09-27 23:19 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] w1/w1_family: add Nishanth Aravamudan
3 siblings, 0 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2004-09-27 17:25 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]
Any comments would be appreciated.
Description: Use msleep_interruptible() instead of
schedule_timeout() to guarantee the task delays as expected. Change the
units of POLL_INTERVAL to msecs to correspond to the msleep*() change.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
--- 2.6.9-rc1-mm4-vanilla/drivers/sbus/char/bbc_envctrl.c 2004-09-09 23:05:59.000000000 -0700
+++ 2.6.9-rc1-mm4/drivers/sbus/char/bbc_envctrl.c 2004-09-10 15:41:09.000000000 -0700
@@ -452,7 +452,7 @@ static void fans_full_blast(void)
}
}
-#define POLL_INTERVAL (5 * HZ)
+#define POLL_INTERVAL (5 * 1000)
static unsigned long last_warning_jiffies;
static struct task_struct *kenvctrld_task;
@@ -468,8 +468,7 @@ static int kenvctrld(void *__unused)
struct bbc_cpu_temperature *tp;
struct bbc_fan_control *fp;
- current->state = TASK_INTERRUPTIBLE;
- schedule_timeout(POLL_INTERVAL);
+ msleep_interruptible(POLL_INTERVAL);
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] 5+ messages in thread
* [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] w1/w1_family: add
2004-09-20 22:13 [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] message/exec-osm: replace Nishanth Aravamudan
` (2 preceding siblings ...)
2004-09-27 17:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] sbus/bbc_envctrl: replace Nishanth Aravamudan
@ 2004-09-27 23:19 ` Nishanth Aravamudan
3 siblings, 0 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2004-09-27 23:19 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
Any comments would be appreciated.
Description: Inserted set_current_state() before schedule_timeout() so
the task delays as expected. Without the insertion, schedule_timeout()
will return immediately.
--- 2.6.9-rc2-vanilla/drivers/w1/w1_family.c 2004-09-13 17:16:07.000000000 -0700
+++ 2.6.9-rc2/drivers/w1/w1_family.c 2004-09-14 10:46:00.000000000 -0700
@@ -84,8 +84,10 @@ void w1_unregister_family(struct w1_fami
spin_unlock(&w1_flock);
- while (atomic_read(&fent->refcnt))
+ while (atomic_read(&fent->refcnt)) {
+ set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(10);
+ }
}
/*
[-- 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] 5+ messages in thread
end of thread, other threads:[~2004-09-27 23:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 22:13 [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] message/exec-osm: replace Nishanth Aravamudan
2004-09-20 23:58 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] mtd/cfi_cmdset_0001: Nishanth Aravamudan
2004-09-24 23:18 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] pci hotplug/cpqphp: replace Nishanth Aravamudan
2004-09-27 17:25 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] sbus/bbc_envctrl: replace Nishanth Aravamudan
2004-09-27 23:19 ` [Kernel-janitors] [PATCH 2.6.9-rc2 2/4] w1/w1_family: add 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.