From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f193.google.com ([209.85.223.193]:50160 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756453AbdKNXGi (ORCPT ); Tue, 14 Nov 2017 18:06:38 -0500 Received: by mail-io0-f193.google.com with SMTP id x63so14017499ioe.6 for ; Tue, 14 Nov 2017 15:06:38 -0800 (PST) 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 v3 2/7] SUNRPC: Expose kill_new_tasks in debugfs Date: Tue, 14 Nov 2017 17:06:26 -0600 Message-Id: <20171114230631.14682-3-JPEWhacker@gmail.com> In-Reply-To: <20171114230631.14682-1-JPEWhacker@gmail.com> References: <20171114230631.14682-1-JPEWhacker@gmail.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: 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); -- 2.13.6