* [Kernel-janitors] [PATCH 2.6.9-rc2 32/33] char/zftape-buffers:
@ 2004-09-16 22:12 Nishanth Aravamudan
2004-09-21 20:53 ` maximilian attems
0 siblings, 1 reply; 2+ messages in thread
From: Nishanth Aravamudan @ 2004-09-16 22:12 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
Any comments would be appreciated. There actually won't be a PATCH
33/33, because I dropped one that even I wouldn't approve :)
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-rc2-vanilla/drivers/char/ftape/zftape/zftape-buffers.c 2004-09-13 17:15:47.000000000 -0700
+++ 2.6.9-rc2/drivers/char/ftape/zftape/zftape-buffers.c 2004-09-16 15:04:45.000000000 -0700
@@ -27,6 +27,7 @@
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/slab.h>
+#include <linux/delay.h>
#include <linux/zftape.h>
@@ -119,8 +120,7 @@ void *zft_kmalloc(size_t size)
void *new;
while ((new = kmalloc(size, GFP_KERNEL)) == NULL) {
- current->state = TASK_INTERRUPTIBLE;
- schedule_timeout(HZ/10);
+ msleep_interuptible(100);
}
memset(new, 0, size);
used_memory += size;
[-- 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] 2+ messages in thread
* Re: [Kernel-janitors] [PATCH 2.6.9-rc2 32/33] char/zftape-buffers:
2004-09-16 22:12 [Kernel-janitors] [PATCH 2.6.9-rc2 32/33] char/zftape-buffers: Nishanth Aravamudan
@ 2004-09-21 20:53 ` maximilian attems
0 siblings, 0 replies; 2+ messages in thread
From: maximilian attems @ 2004-09-21 20:53 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]
On Thu, 16 Sep 2004, Nishanth Aravamudan wrote:
> Any comments would be appreciated. There actually won't be a PATCH
> 33/33, because I dropped one that even I wouldn't approve :)
>
> 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-rc2-vanilla/drivers/char/ftape/zftape/zftape-buffers.c 2004-09-13 17:15:47.000000000 -0700
> +++ 2.6.9-rc2/drivers/char/ftape/zftape/zftape-buffers.c 2004-09-16 15:04:45.000000000 -0700
> @@ -27,6 +27,7 @@
> #include <linux/errno.h>
> #include <linux/mm.h>
> #include <linux/slab.h>
> +#include <linux/delay.h>
>
> #include <linux/zftape.h>
>
> @@ -119,8 +120,7 @@ void *zft_kmalloc(size_t size)
> void *new;
>
> while ((new = kmalloc(size, GFP_KERNEL)) == NULL) {
> - current->state = TASK_INTERRUPTIBLE;
> - schedule_timeout(HZ/10);
> + msleep_interuptible(100);
^
hmm strange function you are referencing ;)
grep says it's the only case of this typo.
fixed in kjt.
> }
> memset(new, 0, size);
> used_memory += size;
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] 2+ messages in thread
end of thread, other threads:[~2004-09-21 20:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16 22:12 [Kernel-janitors] [PATCH 2.6.9-rc2 32/33] char/zftape-buffers: Nishanth Aravamudan
2004-09-21 20:53 ` maximilian attems
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.