From patchwork Fri Nov 17 17:45:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Watt X-Patchwork-Id: 10063059 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 179126023A for ; Fri, 17 Nov 2017 17:46:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 072442AD16 for ; Fri, 17 Nov 2017 17:46:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F065F2AD3A; Fri, 17 Nov 2017 17:46:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96F852AD16 for ; Fri, 17 Nov 2017 17:46:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030315AbdKQRqP (ORCPT ); Fri, 17 Nov 2017 12:46:15 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:36905 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161128AbdKQRqK (ORCPT ); Fri, 17 Nov 2017 12:46:10 -0500 Received: by mail-it0-f66.google.com with SMTP id m191so4973093itg.2 for ; Fri, 17 Nov 2017 09:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9CbLK8EZ9KbmNQXGlaWqe/OivbL+DBmGVJdK8sY/BD8=; b=iEcdIbsTSM7oDJIxqkifvNvQyJZT/a1aNLnszpTt13LCJLX2H/5PdLpEzDMcpnJ/Ye V7lQIEJR+Judk6h7YOeSSoVAiUkQwm0CWdGUVkp3sCdb6yOFRPBsIN4TV+ZlxZwSCNs8 lOOHPwp9HD431Fn2lEExmhECRvfwwa7DXFu8GkwnvWr87SguDiuJDcAZim04iD57tVcy CXlmQgAqh5gm6qhL3RFXTX/KqsK8umr4NeG8RvDtukkPtOyL78OmNt480iuKtsPoFDHK ZC1gXkpzZN4y19CZD034Z3FRRdqNonzMz16NoXh3FiCNJlJat+dpAVdDfzRLlUFD/naS 2q0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9CbLK8EZ9KbmNQXGlaWqe/OivbL+DBmGVJdK8sY/BD8=; b=pm9TePl21uJ0Iz+v8zP/16n7uv8ij+ZdsBh6g3T1P/DgxiwCnVkkae3mzjTJx1kmw/ Lh37tnaB2gZXumCcoCWZ5//VYLzrZyFEn2tvmMuMVt9CeRB81DyV2MjDtE5rRSND5brn IF8OFBfAqcTfFB9VB65V/bsAbXq3thiGL1BgyJHxWP5xsZIPH2UM1QOkoOA2rTZ7TwWT AONhcLty/pAAyUZDyarHMbx8BOCIM6F/0BsfkpRWChLk0Sn7eRZCCdWc8XrexqRGFiFn 3wIyledq+7PQCik5WQcR0a2OInWaZlAeguzQ4c/WqwT66WQ6W6HQ2sm1mPO2roaExkpw vBAQ== X-Gm-Message-State: AJaThX4Qnmb6iup6y3c5s8/fwpvs4bjxNYnjRmEjDN4CGqcAhKDq4CjQ UBxEMif4SUKotOsFKb3NqfU= X-Google-Smtp-Source: AGs4zMaO2Yd7kGnFOvMGlt41kYc06aBiIS9KGo3+9xMoQ6gJLtkEHbCV/67DBcZ3FEBLrya996v1Ww== X-Received: by 10.36.78.3 with SMTP id r3mr7409235ita.134.1510940769899; Fri, 17 Nov 2017 09:46:09 -0800 (PST) Received: from ola-842mrw1.ad.garmin.com ([204.77.163.55]) by smtp.googlemail.com with ESMTPSA id h21sm1878189iod.59.2017.11.17.09.46.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Nov 2017 09:46:09 -0800 (PST) From: Joshua Watt X-Google-Original-From: Joshua Watt To: NeilBrown , Jeff Layton , Trond Myklebust , "J . Bruce Fields" Cc: linux-nfs@vger.kernel.org, Al Viro , David Howells , Joshua Watt Subject: [RFC v4 2/9] SUNRPC: Expose kill_new_tasks in debugfs Date: Fri, 17 Nov 2017 11:45:45 -0600 Message-Id: <20171117174552.18722-3-JPEWhacker@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171117174552.18722-1-JPEWhacker@gmail.com> References: <20171117174552.18722-1-JPEWhacker@gmail.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Joshua Watt --- net/sunrpc/debugfs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/sunrpc/debugfs.c b/net/sunrpc/debugfs.c index e980d2a493de..72d9d074abd2 100644 --- a/net/sunrpc/debugfs.c +++ b/net/sunrpc/debugfs.c @@ -160,6 +160,11 @@ rpc_clnt_debugfs_register(struct rpc_clnt *clnt) if (!debugfs_create_symlink("xprt", clnt->cl_debugfs, name)) goto out_err; + if (!debugfs_create_atomic_t("kill_new_tasks", S_IRUSR | S_IWUSR, + clnt->cl_debugfs, + &clnt->cl_kill_new_tasks)) + goto out_err; + return; out_err: debugfs_remove_recursive(clnt->cl_debugfs);