Skip to content

Commit 695bc1f

Browse files
committed
SUNRPC: Clear rq_xid when receiving a new RPC Call
This is an eye-catcher for tracepoints that record the XID: it means svc_rqst() has not received a full RPC Call with an XID yet. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 5e052dd commit 695bc1f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/sunrpc/svc_xprt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,8 @@ static int svc_alloc_arg(struct svc_rqst *rqstp)
701701
arg->page_len = (pages-2)*PAGE_SIZE;
702702
arg->len = (pages-1)*PAGE_SIZE;
703703
arg->tail[0].iov_len = 0;
704+
705+
rqstp->rq_xid = xdr_zero;
704706
return 0;
705707
}
706708

0 commit comments

Comments
 (0)