lkml.org 
[lkml]   [1998]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[schedule timeout update 2] Re: Compile failure on 2.1.127
On 7 Nov 1998, Michael Harnois wrote:

>And it did fix the first error. But I still went on to get this one:

Index: linux/drivers/char/ftape/zftape/zftape-buffers.c
diff -u linux/drivers/char/ftape/zftape/zftape-buffers.c:1.1.1.1 linux/drivers/char/ftape/zftape/zftape-buffers.c:1.1.1.1.14.1
--- linux/drivers/char/ftape/zftape/zftape-buffers.c:1.1.1.1 Fri Oct 2 19:23:18 1998
+++ linux/drivers/char/ftape/zftape/zftape-buffers.c Sun Nov 8 02:26:29 1998
@@ -122,9 +122,8 @@
void *new;

while ((new = kmalloc(size, GFP_KERNEL)) == NULL) {
- current->timeout = HZ/10;
current->state = TASK_INTERRUPTIBLE;
- schedule();
+ schedule_timeout((HZ+9)/10);
}
memset(new, 0, size);
used_memory += size;

Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.056 / U:1.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site