mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
SUNRPC: Re-order construction of the first reply fields
Clean up: Group these together for legibility. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
6898b47a0f
commit
2009e32997
1 changed files with 3 additions and 7 deletions
|
@ -1248,19 +1248,15 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
|
|||
set_bit(RQ_USEDEFERRAL, &rqstp->rq_flags);
|
||||
clear_bit(RQ_DROPME, &rqstp->rq_flags);
|
||||
|
||||
/* Construct the first words of the reply: */
|
||||
svc_putu32(resv, rqstp->rq_xid);
|
||||
svc_putnl(resv, RPC_REPLY);
|
||||
reply_statp = resv->iov_base + resv->iov_len;
|
||||
|
||||
vers = svc_getnl(argv);
|
||||
|
||||
/* First words of reply: */
|
||||
svc_putnl(resv, 1); /* REPLY */
|
||||
|
||||
if (vers != 2) /* RPC version number */
|
||||
goto err_bad_rpc;
|
||||
|
||||
/* Save position in case we later decide to reject: */
|
||||
reply_statp = resv->iov_base + resv->iov_len;
|
||||
|
||||
svc_putnl(resv, 0); /* ACCEPT */
|
||||
|
||||
rqstp->rq_prog = prog = svc_getnl(argv); /* program number */
|
||||
|
|
Loading…
Add table
Reference in a new issue