diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-30 23:59:29 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-05 18:30:53 -0500 |
commit | c05eecf636101dd4347b2d8fa457626bf0088e0a (patch) | |
tree | 6362560cd66efedd12793552b124417e4fe68a74 /include/linux/sunrpc | |
parent | b75ad4cda5a6cd3431b1c65c2739c5ebd2c4b9da (diff) |
SUNRPC: Don't allow low priority tasks to pre-empt higher priority ones
Currently, the priority queues attempt to be 'fair' to lower priority
tasks by scheduling them after a certain number of higher priority tasks
have run. The problem is that both the transport send queue and
the NFSv4.1 session slot queue have strong ordering requirements.
This patch therefore removes the fairness code in favour of strong
ordering of task priorities.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/sched.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index dc0c3cc3ada3..b64f8eb0b973 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
@@ -192,7 +192,6 @@ struct rpc_wait_queue { | |||
192 | pid_t owner; /* process id of last task serviced */ | 192 | pid_t owner; /* process id of last task serviced */ |
193 | unsigned char maxpriority; /* maximum priority (0 if queue is not a priority queue) */ | 193 | unsigned char maxpriority; /* maximum priority (0 if queue is not a priority queue) */ |
194 | unsigned char priority; /* current priority */ | 194 | unsigned char priority; /* current priority */ |
195 | unsigned char count; /* # task groups remaining serviced so far */ | ||
196 | unsigned char nr; /* # tasks remaining for cookie */ | 195 | unsigned char nr; /* # tasks remaining for cookie */ |
197 | unsigned short qlen; /* total # tasks waiting in queue */ | 196 | unsigned short qlen; /* total # tasks waiting in queue */ |
198 | struct rpc_timer timer_list; | 197 | struct rpc_timer timer_list; |