* [PATCH for-next] RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove
@ 2020-05-24 19:08 Potnuri Bharat Teja
2020-05-25 18:38 ` Jason Gunthorpe
0 siblings, 1 reply; 2+ messages in thread
From: Potnuri Bharat Teja @ 2020-05-24 19:08 UTC (permalink / raw)
To: jgg, dledford; +Cc: linux-rdma, bharat, nirranjan
Remove device specific debugfs entries immediately if LLD detaches a
particular ULD device in case of fatal PCI errors.
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
---
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 599340c1f0b8..541dbcf22d0e 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);
}
--
2.24.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH for-next] RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove
2020-05-24 19:08 [PATCH for-next] RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove Potnuri Bharat Teja
@ 2020-05-25 18:38 ` Jason Gunthorpe
0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2020-05-25 18:38 UTC (permalink / raw)
To: Potnuri Bharat Teja; +Cc: dledford, linux-rdma, nirranjan
On Mon, May 25, 2020 at 12:38:14AM +0530, Potnuri Bharat Teja wrote:
> Remove device specific debugfs entries immediately if LLD detaches a
> particular ULD device in case of fatal PCI errors.
>
> Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
> ---
> drivers/infiniband/hw/cxgb4/device.c | 1 +
> 1 file changed, 1 insertion(+)
Applied to for-next, thanks
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-25 18:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-24 19:08 [PATCH for-next] RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove Potnuri Bharat Teja
2020-05-25 18:38 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).