]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Replace division by multiplication in calculation of queue length
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 15 Jul 2019 19:12:08 +0000 (15:12 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 16 Jul 2019 11:11:58 +0000 (07:11 -0400)
commitb78de597669760a15d561f614753184b93a55c71
tree31942b53680b0c64c364322c154753857a93eb93
parent1b48a4c30bcea0a7510d8663f7f7b326585d3a60
SUNRPC: Replace division by multiplication in calculation of queue length

When checking whether or not a particular xprt queue length is shorter
than the average queue length for all xprts, prefer to use multiplication
rather than division for performance reasons.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtmultipath.c