Searched hist:c05eecf636101dd4347b2d8fa457626bf0088e0a (Results 1 – 2 of 2) sorted by relevance
/linux/net/sunrpc/ |
H A D | sched.c | diff edd2e36fe8bd3cec4fa67e746d4c4a9246d0830e Sun Jan 27 20:20:49 CET 2013 Trond Myklebust <Trond.Myklebust@netapp.com> SUNRPC: When changing the queue priority, ensure that we change the owner
This fixes a livelock in the xprt->sending queue where we end up never making progress on lower priority tasks because sleep_on_priority() keeps adding new tasks with the same owner to the head of the queue, and priority bumps mean that we keep resetting the queue->owner to whatever task is at the head of the queue.
Regression introduced by commit c05eecf636101dd4347b2d8fa457626bf0088e0a (SUNRPC: Don't allow low priority tasks to pre-empt higher priority ones).
Reported-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> diff c05eecf636101dd4347b2d8fa457626bf0088e0a Sat Dec 01 05:59:29 CET 2012 Trond Myklebust <Trond.Myklebust@netapp.com> 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>
|
/linux/include/linux/sunrpc/ |
H A D | sched.h | diff c05eecf636101dd4347b2d8fa457626bf0088e0a Sat Dec 01 05:59:29 CET 2012 Trond Myklebust <Trond.Myklebust@netapp.com> 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>
|