patch-2.4.11-dontuse linux/net/sunrpc/sched.c
Next file: linux/net/sunrpc/xdr.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Oct 1 13:45:47 2001
- Orig file:
v2.4.10/linux/net/sunrpc/sched.c
- Orig date:
Sun Sep 23 11:41:02 2001
diff -u --recursive --new-file v2.4.10/linux/net/sunrpc/sched.c linux/net/sunrpc/sched.c
@@ -772,8 +772,8 @@
}
if (flags & RPC_TASK_ASYNC)
return NULL;
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ>>4);
+ current->policy |= SCHED_YIELD;
+ schedule();
} while (!signalled());
return NULL;
@@ -1116,8 +1116,8 @@
__rpc_schedule();
if (all_tasks) {
dprintk("rpciod_killall: waiting for tasks to exit\n");
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(1);
+ current->policy |= SCHED_YIELD;
+ schedule();
}
}
@@ -1187,8 +1187,8 @@
* wait briefly before checking the process id.
*/
current->sigpending = 0;
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(1);
+ current->policy |= SCHED_YIELD;
+ schedule();
/*
* Display a message if we're going to wait longer.
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)