patch-2.1.110 linux/net/sunrpc/sched.c

Next file: linux/net/sunrpc/sunrpc_syms.c
Previous file: linux/net/sunrpc/clnt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/net/sunrpc/sched.c linux/net/sunrpc/sched.c
@@ -466,10 +466,12 @@
 	struct rpc_task	*task;
 	int		count = 0;
 	unsigned long	oldflags;
+	int need_resched = current->need_resched;
 
 	dprintk("RPC:      rpc_schedule enter\n");
+	save_flags(oldflags);
 	while (1) {
-		save_flags(oldflags); cli();
+		cli();
 		if (!(task = schedq.task))
 			break;
 		rpc_del_timer(task);

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