From: Chuck Lever Date: Tue, 18 Apr 2023 02:15:28 +0000 (-0400) Subject: SUNRPC: Clear rq_xid when receiving a new RPC Call X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=695bc1f32c6bc806218b322096b23dfd601e59ca;p=linux.git 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 --- diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index e3952b690f54f..3b9708b39e352 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; }