Skip to contentSkip to conversation

RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove

PATCH Applied Potnuri Bharat Teja 2 participants 2 messages May 24, 2020 – May 25, 2020

Subsystems (2)
lore
Share & tools
lore

Potnuri Bharat Teja

author maintainer
#0 lore raw

PATCH 1/1 RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove

Remove device specific debugfs entries immediately if LLD detaches a particular ULD device in case of fatal PCI errors.

---
 drivers/infiniband/hw/cxgb4/device.c | 1 +
 1 file changed, 1 insertion(+)
drivers/infiniband/hw/cxgb4/device.c +1 -0
index 599340c1f0b8..541dbcf22d0e 100644
@@ -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);
 }
Signature · 1 line
2.24.0
#1 lore raw
Quoted 7 lines · Potnuri Bharat Teja

Remove device specific debugfs entries immediately if LLD detaches a particular ULD device in case of fatal PCI errors.

---
 drivers/infiniband/hw/cxgb4/device.c | 1 +
 1 file changed, 1 insertion(+)

Applied to for-next, thanks

Jason