From patchwork Tue Nov 14 23:06:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Watt X-Patchwork-Id: 10058537 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 D88B460215 for ; Tue, 14 Nov 2017 23:06:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC0DF29AA1 for ; Tue, 14 Nov 2017 23:06:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C09B729AB5; Tue, 14 Nov 2017 23:06:40 +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 6BC9E29AAD for ; Tue, 14 Nov 2017 23:06:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756475AbdKNXGj (ORCPT ); Tue, 14 Nov 2017 18:06:39 -0500 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) 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=QjHHCqUX2D+ECt18I0R/ODoqhkkbFJcwLXTve1Tm3TreOB9YM/2yGEJzlta2Zi6rcU ssH12rwaEp2IrOfGo4DFPi7z4RF8Qc75Pm/a9jmo9mmki/J91fadnFOOktFryGhpkV/b U9aSLXBMZHmpnsMP9QQkdKzyzqMtSJkZO8iWjvFw82ps9/09xuU4eqajsMSXNfl2N1/F AYx3lT3DDVNg3rllXm/5eqiJXvmWuRXqK7OLdzbCdG8RaVYt4vhVlYmR+b1Fxz9MuVbv heAjXKel3UqZhy1v6zrbi/ZMJCgZtSGzy7F9SQFiXT5m5kgAHLtxMIX4zTn9uWK1YQ6R pYyw== 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=W+EFxENQQKyz42P8wvWDbxe8prIJxt8C7oNv7J4ECUenwjB18Hh+T0yG63ug88IbMS 5BYJlp0KQs1GNA+YUk4LiaVhAU2aPzxAR3oCymGvJ+2v1qMhdeSO5y7tynAWnS2nBNzG LdeoeYIjYOmjEtzUeRLn6dpDzfa709zPwCpGf5SppavB9ZZphBaTo7CRC00MA9yg1eZK j+kfujKoxvEKFFYCIRG7O07vUdykGykTPQfnL5Sf88wsCewAr6N/MHOXXi88a2Nf0I3n 9gn7pNUNllwIxuiVkUCzwbohggjLZeKIZvjMo1pvhI+SFQwJcQvS+E3wVjxl0CEQZfD3 X1AQ== X-Gm-Message-State: AJaThX4zyygU2KA550kFLgsGM/VNyP/j9LLo+u+nGMINRGAMacL9DcWb 2eWudhSyXzvzEFNz1KDUNN8= X-Google-Smtp-Source: AGs4zMbGV0u39rN0NtJxsUyRsX60kxdLGvjwdHYnINlnhHa5dHvdyT4STca7XubAwkSpe+2BQMOlog== X-Received: by 10.107.136.78 with SMTP id k75mr12987643iod.139.1510700797419; Tue, 14 Nov 2017 15:06:37 -0800 (PST) Received: from ola-842mrw1.ad.garmin.com ([204.77.163.55]) by smtp.googlemail.com with ESMTPSA id e203sm6015236itb.32.2017.11.14.15.06.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Nov 2017 15:06:36 -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 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> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171114230631.14682-1-JPEWhacker@gmail.com> References: <20171114230631.14682-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);