summaryrefslogtreecommitdiff
path: root/drivers/scsi/hisi_sas/hisi_sas.h
diff options
context:
space:
mode:
authorLuo Jiaxing <luojiaxing@huawei.com>2019-10-24 22:08:19 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-10-24 21:31:14 -0400
commitb714dd8f36dc609dd4b0078cf5563978134838ed (patch)
tree6a28ac8f8cf3324d0e1832f4bca1766f6515fff2 /drivers/scsi/hisi_sas/hisi_sas.h
parent0161d55f23a1e020e5e6892177caf92a61e5c161 (diff)
scsi: hisi_sas: Add debugfs file structure for IOST cache
Create a file structure which was used to save the memory address for IOST cache at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it needs. Link: https://lore.kernel.org/r/1571926105-74636-13-git-send-email-john.garry@huawei.com Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas.h')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h
index f42f1b34f843..4e32d1b77d16 100644
--- a/drivers/scsi/hisi_sas/hisi_sas.h
+++ b/drivers/scsi/hisi_sas/hisi_sas.h
@@ -351,6 +351,10 @@ struct hisi_sas_debugfs_itct {
struct hisi_sas_itct *itct;
};
+struct hisi_sas_debugfs_iost_cache {
+ struct hisi_sas_iost_itct_cache *cache;
+};
+
struct hisi_hba {
/* This must be the first element, used by SHOST_TO_SAS_HA */
struct sas_ha_struct *p;
@@ -438,8 +442,8 @@ struct hisi_hba {
struct hisi_sas_debugfs_dq debugfs_dq[HISI_SAS_MAX_QUEUES];
struct hisi_sas_debugfs_iost debugfs_iost;
struct hisi_sas_debugfs_itct debugfs_itct;
- u64 *debugfs_iost_cache;
u64 debugfs_timestamp;
+ struct hisi_sas_debugfs_iost_cache debugfs_iost_cache;
u64 *debugfs_itct_cache;
struct dentry *debugfs_dir;