From patchwork Tue Jun 23 19:56:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 223472 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB95DC433E0 for ; Tue, 23 Jun 2020 20:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDB5C2064B for ; Tue, 23 Jun 2020 20:28:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592944124; bh=wpg9bdml8FAk7etp5Y5ZvWfdNNyl7h8kD5aJPOpqkjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=E2lbCtIX38GwyrcoRPcJrGjuT2El/1+YW8zt9wGvwoV1JdCoVEAnvKVs/DN7r0rH2 MZPnibL5nvD0NtAVO8qvB+Ip71W1hJ2F9k1jIl2+R3o5UPpbeY9hMsH2C3ELrExXTM GniaIEzeeplr+cLlJbhyDi1x2mg2iwWhs7zI+lTw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390902AbgFWU2n (ORCPT ); Tue, 23 Jun 2020 16:28:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:48590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390899AbgFWU2m (ORCPT ); Tue, 23 Jun 2020 16:28:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9628F206C3; Tue, 23 Jun 2020 20:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592944123; bh=wpg9bdml8FAk7etp5Y5ZvWfdNNyl7h8kD5aJPOpqkjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZMCq1jy2rOfnMXJSa2oYC5CxRYMNLM2snu4twCjAepnsro0mWgUmLmPNUu+2+HkgG B++A9TIGCCowgUdF7QADsoH982goaWx2uR/PRpmY0nsLbBQXa1eWV7FqUiIA/lI5Y3 t6aUkhU1PwelnJPPHkb5PEm+Ytju0Gga5fS3HPjk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Potnuri Bharat Teja , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 181/314] RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove Date: Tue, 23 Jun 2020 21:56:16 +0200 Message-Id: <20200623195347.521308738@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200623195338.770401005@linuxfoundation.org> References: <20200623195338.770401005@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Potnuri Bharat Teja [ Upstream commit 49ea0c036ede81f126f1a9389d377999fdf5c5a1 ] Remove device specific debugfs entries immediately if LLD detaches a particular ULD device in case of fatal PCI errors. Link: https://lore.kernel.org/r/20200524190814.17599-1-bharat@chelsio.com Signed-off-by: Potnuri Bharat Teja Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/cxgb4/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c index 599340c1f0b82..541dbcf22d0eb 100644 --- a/drivers/infiniband/hw/cxgb4/device.c +++ b/drivers/infiniband/hw/cxgb4/device.c @@ -953,6 +953,7 @@ void c4iw_dealloc(struct uld_ctx *ctx) static void c4iw_remove(struct uld_ctx *ctx) { pr_debug("c4iw_dev %p\n", ctx->dev); + debugfs_remove_recursive(ctx->dev->debugfs_root); c4iw_unregister_device(ctx->dev); c4iw_dealloc(ctx); }