]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix priority queue fairness
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 9 Sep 2018 02:09:48 +0000 (22:09 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:16 +0000 (15:35 -0400)
commite5f95f1e2b71a50acdc9f4df31fec63a1619f59e
treee353840e3aca08d191b7280bf91487614fe130c3
parente2e45a07f55f8731149f60602d989f4952ea8d05
SUNRPC: Fix priority queue fairness

Fix up the priority queue to not batch by owner, but by queue, so that
we allow '1 << priority' elements to be dequeued before switching to
the next priority queue.
The owner field is still used to wake up requests in round robin order
by owner to avoid single processes hogging the RPC layer by loading the
queues.

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