diff mbox series

SUNRPC: Clear rq_xid when receiving a new RPC Call

Message ID 168178412883.8769.9296327350018086805.stgit@klimt.1015granger.net (mailing list archive)
State New, archived
Headers show
Series SUNRPC: Clear rq_xid when receiving a new RPC Call | expand

Commit Message

Chuck Lever April 18, 2023, 2:15 a.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

This is an eye-catcher for tracepoints that record the XID: it means
the svc_rqst has not received a full RPC Call with an XID yet.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 net/sunrpc/svc_xprt.c |    2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c
index e3952b690f54..3b9708b39e35 100644
--- a/net/sunrpc/svc_xprt.c
+++ b/net/sunrpc/svc_xprt.c
@@ -701,6 +701,8 @@  static int svc_alloc_arg(struct svc_rqst *rqstp)
 	arg->page_len = (pages-2)*PAGE_SIZE;
 	arg->len = (pages-1)*PAGE_SIZE;
 	arg->tail[0].iov_len = 0;
+
+	rqstp->rq_xid = xdr_zero;
 	return 0;
 }