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>
此提交包含在:
John Garry
2016-09-06 23:36:11 +08:00
提交者 Martin K. Petersen
父節點 c4a11827b7
當前提交 e6c346f303
共有 3 個檔案被更改,包括 5 行新增7 行删除

查看文件

@@ -94,6 +94,7 @@ struct hisi_sas_port {
struct hisi_sas_cq {
struct hisi_hba *hisi_hba;
int rd_point;
int id;
};