diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-01-08 17:29:44 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-02-20 15:20:27 +0100 |
commit | 8dd41d70f331c342842e8d349d7a1f73b0ba7ccd (patch) | |
tree | 45421e5e073e513651a08fb992215a95e940db21 /net | |
parent | SUNRPC: Add XDR encoding helper for opaque_auth (diff) | |
download | linux-8dd41d70f331c342842e8d349d7a1f73b0ba7ccd.tar.xz linux-8dd41d70f331c342842e8d349d7a1f73b0ba7ccd.zip |
SUNRPC: Push svcxdr_init_encode() into svc_process_common()
Now that all vs_dispatch functions invoke svcxdr_init_encode(), it
is common code and can be pushed down into the generic RPC server.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/svc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 7610e36e51e0..ce75db5eb9bd 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1321,6 +1321,7 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *resv) */ if (procp->pc_xdrressize) svc_reserve_auth(rqstp, procp->pc_xdrressize<<2); + svcxdr_init_encode(rqstp); /* Call the function that processes the request. */ rc = process.dispatch(rqstp, statp); |