patch-2.1.127 linux/drivers/block/md.c

Next file: linux/drivers/block/paride/pcd.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -1139,8 +1139,7 @@
 		while (blocksize*j/(jiffies-starttime+1)*HZ/1024 > SPEED_LIMIT)
 		{
 			current->state = TASK_INTERRUPTIBLE;
-			current->timeout = jiffies+1;
-			schedule();
+			schedule_timeout(1);
 		}
 
 		/*

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