summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-01-02 12:05:30 -0500
committerChuck Lever <chuck.lever@oracle.com>2023-02-20 09:20:09 -0500
commitdba5eaa46b0282cb9607d362c8887dfcb44bfd2e (patch)
treecf848b721f2eab3080ff84fefca5f5e1145794cb /net/sunrpc/svc.c
parentf78e44545814b26ab6af7cdd5b022293ceac867e (diff)
downloadlinux-dba5eaa46b0282cb9607d362c8887dfcb44bfd2e.tar.gz
linux-dba5eaa46b0282cb9607d362c8887dfcb44bfd2e.tar.bz2
linux-dba5eaa46b0282cb9607d362c8887dfcb44bfd2e.zip
SUNRPC: Push svcxdr_init_decode() into svc_process_common()
Now that all vs_dispatch functions invoke svcxdr_init_decode(), 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/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index f06622814a95..8d1700e2ce1d 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -1302,6 +1302,7 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
if (progp == NULL)
goto err_bad_prog;
+ svcxdr_init_decode(rqstp);
rpc_stat = progp->pg_init_request(rqstp, progp, &process);
switch (rpc_stat) {
case rpc_success: