The tag set debugfs directory lists the adapter's request queues, but does not link to its IOC dump and host recovery debugfs entries. Link the SCSI host tag set to the mpt3sas/scsi_host debugfs directory after adapter debugfs setup succeeds. Remove the controller link before deleting the adapter directory. Signed-off-by: Lei Chen --- drivers/scsi/mpt3sas/mpt3sas_debugfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_debugfs.c b/drivers/scsi/mpt3sas/mpt3sas_debugfs.c index 183391f6b8d1..9f64a7c9db60 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_debugfs.c +++ b/drivers/scsi/mpt3sas/mpt3sas_debugfs.c @@ -144,6 +144,8 @@ mpt3sas_setup_debugfs(struct MPT3SAS_ADAPTER *ioc) snprintf(name, sizeof(name), "host_recovery"); debugfs_create_u8(name, 0444, ioc->debugfs_root, &ioc->shost_recovery); + blk_mq_tagset_debugfs_link_controller(&ioc->shost->tag_set, + ioc->debugfs_root); } /* @@ -152,6 +154,6 @@ mpt3sas_setup_debugfs(struct MPT3SAS_ADAPTER *ioc) */ void mpt3sas_destroy_debugfs(struct MPT3SAS_ADAPTER *ioc) { + blk_mq_tagset_debugfs_unlink_controller(&ioc->shost->tag_set); debugfs_remove_recursive(ioc->debugfs_root); } - -- 2.43.0