Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1627624rwb; Fri, 28 Jul 2023 12:16:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlGVEhdbiXmOLT2/rMOGJ1X+2GQCrlqvEe9g0BpwHljGyW5YnW2pqiUnudFcLFd+rM6l+7+q X-Received: by 2002:a17:902:8e85:b0:1b9:e97f:38ac with SMTP id bg5-20020a1709028e8500b001b9e97f38acmr2371921plb.56.1690571795592; Fri, 28 Jul 2023 12:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690571795; cv=none; d=google.com; s=arc-20160816; b=I8mWYqDkXP13Dkcfsfh21RimQ8IGfaubQyGOVcuSF86iMpmbYmb9LtCpY0sWdI0Obz B2AgH7/MgS+mEyTC0uBGhJC3qCcAoAiuMTIhANy/k2Ss2SJHGJWnQALRK0EwH6tEZyJf qkL2dhxqP80sWhelxQiLhb0F8354eLVPQJOE0SosHEJ1coOGcFWqX5cMBXucZAfjGNXN 5IQiNscZULV+8Lx6siFaSoDYMS1PQM/3CKGtbKGT9EaxWyV/vPYAsQuPO93vcIt9Nn+Q O16n8uGsPFIxq4+m6KSHFOAfcDnxdK13NqxEcwleaGGjBdcywAaHIeZgZyMPUsSW3DyA eivg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Bu0D0HUciTnJpSiLXGcMJGfMwnbVJ/HyshwdF8N/nr0=; fh=w1PxD+AzYA9rTV2sSsX3uNw7+F67Zm5UlgOEJowej+A=; b=qpc6rPvfqln0VtNHW4aa+d3Utm1MG4XBHXQERBITsOr2gQWd3DIbcl3yOxSP9yvPTM XYkW0FPLbA0GXX549W6+XPFoOfw3TZesx2ndoOSGBYS1VKN7XMNye2ThXggWN47oA3k+ WoS4HAnI9g5FFwlMTVlkUN/Le9NpcPBFJgf9GdmgVrbHAHel3wLh4LBSG59Y2HVryYLf fnVzDo78rCYs3ZJLgZtp8dVqB37Z7C1yHpWQTUjgnnmai5kRcYguMxCmzTMJSHKTsdd/ reqRC8IYKNhVcooG15LM64KS9mu3oxvcb6U85gs7Ybpt4YSQgDUYAtDdkLXrGtdAQGvm hrkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JAdlW4rD; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a170902da8f00b001b89b7ce902si3175557plx.305.2023.07.28.12.16.15; Fri, 28 Jul 2023 12:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JAdlW4rD; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjG1Soa (ORCPT + 99 others); Fri, 28 Jul 2023 14:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbjG1SoV (ORCPT ); Fri, 28 Jul 2023 14:44:21 -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 76FDD2D64 for ; Fri, 28 Jul 2023 11:44:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0997C621B1 for ; Fri, 28 Jul 2023 18:44:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C33FC433C8; Fri, 28 Jul 2023 18:44:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690569856; bh=N4+FJjuOs4sBkISC3TEqM1/GGMmlFe7qHTaiaDIxWso=; h=From:To:Cc:Subject:Date:From; b=JAdlW4rDehKHCoPX/CVUuyuq27+uTdHWupGZu7lF1HnOmw2x52nMKijYcJEp2cgQU WzAZ7fpaSQkUUT3SAshmAxZgQhq9pW5orTi+3jXJeMGOZcQZbJFp8Hoievi2Qi+PfS 4ibE8/9qBJiNqZOpVW1R17re+lLvVGKA22mnWKNTjpkJ5AqNYL+wkYHd7pbrt6JBVY cYroJWnS9cDX9tMMjOsobPPS52d//J0iPsn4jXokKKzp5LCfrWf1zqmiBAkVEEEc+j KvFCcYLnt50tMQKNuqr7kAOu8MFlIBVKM4YWWbe8J3TiannO7KPcnhYnjJks2MLbRm MHIWNpk6E8d5g== From: Lorenzo Bianconi To: linux-nfs@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de Subject: [PATCH v4 0/2] add rpc_status handler in nfsd debug filesystem Date: Fri, 28 Jul 2023 20:44:02 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Introduce rpc_status entry in nfsd debug filesystem in order to dump pending RPC requests debugging information. Changes since v3: - introduce rq_status_counter in order to detect if the RPC request is pending and RPC info are stable - rely on __svc_print_addr to dump IP info Changes since v2: - minor changes in nfsd_rpc_status_show output Changes since v1: - rework nfsd_rpc_status_show output Changes since RFCv1: - riduce time holding nfsd_mutex bumping svc_serv refcoung in nfsd_rpc_status_open() - dump rqstp->rq_stime - add missing kdoc for nfsd_rpc_status_open() Link: https://bugzilla.linux-nfs.org/show_bug.cgi?id=366 Lorenzo Bianconi (2): SUNRPC: add verbose parameter to __svc_print_addr() NFSD: add rpc_status entry in nfsd debug filesystem fs/nfsd/nfs4proc.c | 4 +- fs/nfsd/nfsctl.c | 10 +++ fs/nfsd/nfsd.h | 2 + fs/nfsd/nfssvc.c | 122 ++++++++++++++++++++++++++++++++ include/linux/sunrpc/svc.h | 1 + include/linux/sunrpc/svc_xprt.h | 12 ++-- net/sunrpc/svc.c | 2 +- net/sunrpc/svc_xprt.c | 2 +- 8 files changed, 144 insertions(+), 11 deletions(-) -- 2.41.0