projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1b43f0
)
RDMA/iw_cxgb4: cleanup device debugfs entries on ULD remove
author
Potnuri Bharat Teja
<bharat@chelsio.com>
Sun, 24 May 2020 19:08:14 +0000
(
00:38
+0530)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Mon, 25 May 2020 18:38:35 +0000
(15:38 -0300)
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 <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/device.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/device.c
b/drivers/infiniband/hw/cxgb4/device.c
index
599340c
..
541dbcf
100644
(file)
--- 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);
}