aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas/hisi_sas.h
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2016-09-06 23:36:11 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2016-09-14 12:54:17 -0400
commite6c346f303d41b8799ea224d0faf1b2caa1c98db (patch)
tree5ab81caef92f48c4960acefc2e66605b2e05eab4 /drivers/scsi/hisi_sas/hisi_sas.h
parentscsi: cxlflash: Fix context reference tracking on detach (diff)
downloadlinux-dev-e6c346f303d41b8799ea224d0faf1b2caa1c98db.tar.xz
linux-dev-e6c346f303d41b8799ea224d0faf1b2caa1c98db.zip
scsi: hisi_sas: save completion queue read pointer
Optimise by saving an avoidable read in the cq interrupt. The queue read pointer will only be updated by software, so don't bother re-reading what was already written in the previous interrupt. Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Hannes Reinecke <hare@suse.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h
index ca55ec2974e0..9410335caf41 100644
--- a/drivers/scsi/hisi_sas/hisi_sas.h
+++ b/drivers/scsi/hisi_sas/hisi_sas.h
@@ -94,6 +94,7 @@ struct hisi_sas_port {
struct hisi_sas_cq {
struct hisi_hba *hisi_hba;
+ int rd_point;
int id;
};