From patchwork Tue Apr 18 02:15:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13215018 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEBE5C77B72 for ; Tue, 18 Apr 2023 02:15:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbjDRCPc (ORCPT ); Mon, 17 Apr 2023 22:15:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjDRCPb (ORCPT ); Mon, 17 Apr 2023 22:15:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC164198C for ; Mon, 17 Apr 2023 19:15:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88E2761001 for ; Tue, 18 Apr 2023 02:15:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3D95C433EF for ; Tue, 18 Apr 2023 02:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681784130; bh=74qQ/dF4HU7lvocEDz3TVqiMrSgxsgB+zW6ARn6mmFo=; h=Subject:From:To:Date:From; b=tsmGkZmOhkCXhpyJzbDs3fhghiRTl1p35+WkcJayhH9xdXyS6W1uER1mZ/KjeCol7 O+VXmY+BLBKYqilthFDl85m1SNb2LjX1gTbJ5fUUazkmg9ZWyRHGCVz8hFyD/Owwxz TXC6tRfoqiW2/qC3Kcz5r5LJwts12KY/nYISboSuLP9Kudg5V++ReZaAr5F+CRlm3W hRb9bSs7q2m2KKPQcGm47L68RIqZuPX6k3xX9VfGINqfDekKI/CiLZlQLA0622HIo1 BD0Nk5cW8AM4X6o+TKV9sykHJPWlKlO0VL2sOyxutuGXDw9FnNvVUyHetHmv4JeAvo XOG2BgfFx81/w== Subject: [PATCH] SUNRPC: Clear rq_xid when receiving a new RPC Call From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Mon, 17 Apr 2023 22:15:28 -0400 Message-ID: <168178412883.8769.9296327350018086805.stgit@klimt.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Chuck Lever 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 --- net/sunrpc/svc_xprt.c | 2 ++ 1 file changed, 2 insertions(+) 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; }