patch-2.1.128 linux/drivers/char/ftape/zftape/zftape-buffers.c

Next file: linux/drivers/char/pms.c
Previous file: linux/drivers/char/ftape/lowlevel/fdc-io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.127/linux/drivers/char/ftape/zftape/zftape-buffers.c linux/drivers/char/ftape/zftape/zftape-buffers.c
@@ -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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov