OSDN Git Service

SUNRPC: Improve latency for interactive tasks
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 9 Sep 2018 15:37:22 +0000 (11:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:15 +0000 (15:35 -0400)
commit918f3c1fe83c5baa4892b943d3f5ac7191d8fb74
treebf518a11df0b2fe4a73e2d38355e4be2c6e94563
parentdcbbeda836bc748e8fecd753b83d5b345ef8ec31
SUNRPC: Improve latency for interactive tasks

One of the intentions with the priority queues was to ensure that no
single process can hog the transport. The field task->tk_owner therefore
identifies the RPC call's origin, and is intended to allow the RPC layer
to organise queues for fairness.
This commit therefore modifies the transmit queue to group requests
by task->tk_owner, and ensures that we round robin among those groups.

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