diff options
author | 2021-10-07 16:17:24 -0400 | |
---|---|---|
committer | 2021-10-12 10:13:57 -0400 | |
commit | 0ae93b99beb283438aa571a6add4eab0c077d576 (patch) | |
tree | 927e54776a9fdda30c461266e14917cfbf03f3ce /include/linux/sunrpc | |
parent | SUNRPC: Capture value of xdr_buf::page_base (diff) | |
download | linux-0ae93b99beb283438aa571a6add4eab0c077d576.tar.gz linux-0ae93b99beb283438aa571a6add4eab0c077d576.tar.bz2 linux-0ae93b99beb283438aa571a6add4eab0c077d576.zip |
SUNRPC: Simplify the SVC dispatch code path
Micro-optimization: The last user of the generic SVC dispatch code
path has been removed, so svc_process_common() can be simplified.
This declutters the hot path so that the by-far most common case
(a dispatch function exists) is made the /only/ path.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svc.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 6263410c948a..4205a6ef4770 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -443,10 +443,7 @@ struct svc_version { /* Need xprt with congestion control */ bool vs_need_cong_ctrl; - /* Override dispatch function (e.g. when caching replies). - * A return value of 0 means drop the request. - * vs_dispatch == NULL means use default dispatcher. - */ + /* Dispatch function */ int (*vs_dispatch)(struct svc_rqst *, __be32 *); }; |