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
SubjectRe: Compile failure on 2.1.127
Michael Harnois wrote:
> And it did fix the first error. But I still went on to get this one:
>
> zftape-buffers.c: In function `zft_kmalloc':
> zftape-buffers.c:125: structure has no member named `timeout'
> make[4]: *** [zftape-buffers.o] Error 1

Scheduling changes strikes again!

Apply this patch:

--- v2.1.127/drivers/char/ftape/zftape/zftape-buffers.c Sat Nov 7
22:07:21 1998
+++ linux/drivers/char/ftape/zftape/zftape-buffers.c Sun Nov 8 01:56:57
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/10);
}
memset(new, 0, size);
used_memory += size;
--
* Jens Axboe
*
* "The only thing that interferes with my
* learning is my education." -- A. Einstein

-
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:1.846 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site