]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commitf9c5f2f003521e511e6a4f8811b2365ac1efbf8f
treea6d380f7b0dccc92b81fa6ebb718188c0a09ba30
parent20c7af479a0321ffcaa935d781d18f8037517074
SUNRPC: Fix priority queue fairness

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit f42f7c283078ce3c1e8368b140e270755b1ae313 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/sunrpc/sched.h
net/sunrpc/sched.c