diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-10-07 23:17:24 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-10-12 17:13:57 +0300 |
commit | 0ae93b99beb283438aa571a6add4eab0c077d576 (patch) | |
tree | 927e54776a9fdda30c461266e14917cfbf03f3ce /include/linux/sunrpc | |
parent | 35940a58f9f1db96e5688e426d713f330ead70b8 (diff) | |
download | linux-0ae93b99beb283438aa571a6add4eab0c077d576.tar.xz |
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 *); }; |