Commit 1c59a532 authored by Chuck Lever's avatar Chuck Lever

SUNRPC: Remove svc_process_common's argv parameter

Clean up: With xdr_stream decoding, the @argv parameter is no longer
used.
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 163cdfca
...@@ -1225,7 +1225,7 @@ EXPORT_SYMBOL_GPL(svc_generic_init_request); ...@@ -1225,7 +1225,7 @@ EXPORT_SYMBOL_GPL(svc_generic_init_request);
* Common routine for processing the RPC request. * Common routine for processing the RPC request.
*/ */
static int static int
svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) svc_process_common(struct svc_rqst *rqstp, struct kvec *resv)
{ {
struct svc_program *progp; struct svc_program *progp;
const struct svc_procedure *procp = NULL; const struct svc_procedure *procp = NULL;
...@@ -1363,8 +1363,8 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) ...@@ -1363,8 +1363,8 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
return 0; return 0;
err_short_len: err_short_len:
svc_printk(rqstp, "short len %zd, dropping request\n", svc_printk(rqstp, "short len %u, dropping request\n",
argv->iov_len); rqstp->rq_arg.len);
goto close_xprt; goto close_xprt;
err_bad_rpc: err_bad_rpc:
...@@ -1453,7 +1453,7 @@ svc_process(struct svc_rqst *rqstp) ...@@ -1453,7 +1453,7 @@ svc_process(struct svc_rqst *rqstp)
dir = svc_getu32(argv); dir = svc_getu32(argv);
if (dir != rpc_call) if (dir != rpc_call)
goto out_baddir; goto out_baddir;
if (!svc_process_common(rqstp, argv, resv)) if (!svc_process_common(rqstp, resv))
goto out_drop; goto out_drop;
return svc_send(rqstp); return svc_send(rqstp);
...@@ -1519,7 +1519,7 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req, ...@@ -1519,7 +1519,7 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
svc_getnl(argv); /* CALLDIR */ svc_getnl(argv); /* CALLDIR */
/* Parse and execute the bc call */ /* Parse and execute the bc call */
proc_error = svc_process_common(rqstp, argv, resv); proc_error = svc_process_common(rqstp, resv);
atomic_dec(&req->rq_xprt->bc_slot_count); atomic_dec(&req->rq_xprt->bc_slot_count);
if (!proc_error) { if (!proc_error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment