From patchwork Fri Nov 10 22:37:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Watt X-Patchwork-Id: 10053899 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 F28906032D for ; Fri, 10 Nov 2017 22:37:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E703B223C6 for ; Fri, 10 Nov 2017 22:37:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBB5E2B4BB; Fri, 10 Nov 2017 22:37:37 +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 871F8223C6 for ; Fri, 10 Nov 2017 22:37:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754719AbdKJWhf (ORCPT ); Fri, 10 Nov 2017 17:37:35 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:44803 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754604AbdKJWhf (ORCPT ); Fri, 10 Nov 2017 17:37:35 -0500 Received: by mail-io0-f196.google.com with SMTP id m16so15143971iod.1 for ; Fri, 10 Nov 2017 14:37:34 -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=BhFZY1R+lC8Q6WETuwSTMHQhtlBTYrWxWgpAp2SAH/U=; b=f00WReKS0UckcAz5wDEjkhLPJvIWmHnaSfwV9vSHYJoP5YXwqbPr0ZIdrYebotgcwh qgD/lkj3yHheNB+t7BTO5U+mirDtIqJCJy5f39K70cqGbUN26KzVbNF5hI2ZzMA1Nncz yGxgAT6bslWgDeyg9QfzrDb09GRQABhal0dGAanywUoYe2hkFIxGU8G/+baurBIFPxNe sBU8ozNVmrVA6mLEtqa4sCTuIGkAyp6WDbHi7WQT94J5Nmkfpt7fClw0NtVW22LSyuZx C6lBues+Vg4NfUYtzlvd/T8NuQBcvyT0hH9Jwxowr5S2P/Q25nmUIZDjWxDEF3SwJrqZ d9FA== 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=BhFZY1R+lC8Q6WETuwSTMHQhtlBTYrWxWgpAp2SAH/U=; b=BxTMpwRteJ8fGfX6ekwVtV6Tijh6EplqkplRxddlh1XzOEsFZn0fyuxPEKQYkwXTox 6nRwByaPjZ3zs7qg3xgSC2Wxte7/v7dkAeXgQkVq56tOfZLVH2K7r4bubcNc1+zw3Vlt 2klAJ5EEAkVemVntgm+iT350bicu8wTEfdupEg3Bcb5FBPzGUe+1NuoJ8TKHKyj9IOvc CVJ/Wvi0gkHW20zTdXD3Dq/Vdwz3xeAIlat+jakndsKFs/a2TCNBgbkaUdJWiTWGmWg6 0eEbTxL9kFqgQhsgut/mcOJ790Xxn52mz/XY9y8FKf7GAP34SaCZHFGG11nC43CbyyXE vMqA== X-Gm-Message-State: AJaThX51gm8qbi16Un/2xpdgUEsrBWbbM2tw8rgIc9ecA3o7a4hVY4PP t7W1foOYjxHsS4qxWfc+hk0= X-Google-Smtp-Source: AGs4zMYeBbfq2bfRls5bMeAy6HgFXHrwP+G8PubowtioAG1yfLNXV0we2+prYbbZl/iFAwuuYgJ+dg== X-Received: by 10.107.165.78 with SMTP id o75mr2319656ioe.194.1510353454533; Fri, 10 Nov 2017 14:37:34 -0800 (PST) Received: from ola-842mrw1.ad.garmin.com ([204.77.163.55]) by smtp.googlemail.com with ESMTPSA id f3sm5001090iob.70.2017.11.10.14.37.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Nov 2017 14:37:33 -0800 (PST) From: Joshua Watt X-Google-Original-From: Joshua Watt To: NeilBrown , Jeff Layton , Trond Myklebust Cc: linux-nfs@vger.kernel.org, Al Viro , "J . Bruce Fields" , David Howells , Joshua Watt Subject: [RFC v2 2/7] SUNRPC: Expose kill_new_tasks in debugfs Date: Fri, 10 Nov 2017 16:37:02 -0600 Message-Id: <20171110223707.17098-3-JPEWhacker@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171110223707.17098-1-JPEWhacker@gmail.com> References: <20171110223707.17098-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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/sunrpc/debugfs.c b/net/sunrpc/debugfs.c index e980d2a493de..2ca67b681c1e 100644 --- a/net/sunrpc/debugfs.c +++ b/net/sunrpc/debugfs.c @@ -160,6 +160,10 @@ rpc_clnt_debugfs_register(struct rpc_clnt *clnt) if (!debugfs_create_symlink("xprt", clnt->cl_debugfs, name)) goto out_err; + if (!debugfs_create_bool("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);