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

Next file: linux/scripts/Configure
Previous file: linux/net/irda/parameters.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/net/sunrpc/sched.c linux/net/sunrpc/sched.c
@@ -445,16 +445,16 @@
 			if (current->pid == rpciod_pid)
 				printk(KERN_ERR "RPC: rpciod waiting on sync task!\n");
 
-			sti();
 			__wait_event(task->tk_wait, RPC_IS_RUNNING(task));
-			cli();
 
 			/*
 			 * When the task received a signal, remove from
 			 * any queues etc, and make runnable again.
 			 */
-			if (signalled())
+			if (signalled()) { 
+				cli(); 
 				__rpc_wake_up(task);
+			}
 
 			dprintk("RPC: %4d sync task resuming\n",
 							task->tk_pid);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)