SUNRPC: Allow caller of rpc_sleep_on() to select priority levels
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 17 Jul 2011 22:11:34 +0000 (18:11 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 17 Jul 2011 22:11:34 +0000 (18:11 -0400)
commit3b27bad7f7ceacca6d6c0ef647ffb38aa55a8336
treeccf8bcd5f7276655c33133685a1be3f7281d8278
parentd9ba131d8f58c0d2ff5029e7002ab43f913b36f9
SUNRPC: Allow caller of rpc_sleep_on() to select priority levels

Currently, the caller has to change the value of task->tk_priority if
it wants to select on which priority level the task will sleep.

This patch allows the caller to select a priority level at sleep time
rather than always using task->tk_priority.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/sched.h
net/sunrpc/sched.c