]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Remove the .svo_enqueue_xprt method
authorChuck Lever <chuck.lever@oracle.com>
Tue, 25 Jan 2022 15:17:59 +0000 (10:17 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Feb 2022 15:26:39 +0000 (10:26 -0500)
commit175db96f8b632b470356d4017ca30ca2cae9e332
tree0d9598fc3eda25fa163c5ddc07bae3c99e83e98c
parentc7482cd522def56ae11d5b61204030a3cc7bc43f
SUNRPC: Remove the .svo_enqueue_xprt method

We have never been able to track down and address the underlying
cause of the performance issues with workqueue-based service
support. svo_enqueue_xprt is called multiple times per RPC, so
it adds instruction path length, but always ends up at the same
function: svc_xprt_do_enqueue(). We do not anticipate needing
this flexibility for dynamic nfsd thread management support.

As a micro-optimization, remove .svo_enqueue_xprt because
Spectre/Meltdown makes virtual function calls more costly.

This change essentially reverts commit 0d12975edec9 ("nfsd/sunrpc:
turn enqueueing a svc_xprt into a svc_serv operation").

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfsd/nfssvc.c
include/linux/sunrpc/svc.h
include/linux/sunrpc/svc_xprt.h
net/sunrpc/svc_xprt.c