]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: hisi_sas: Make sg_tablesize consistent value
authorXiang Chen <chenxiang66@hisilicon.com>
Thu, 6 Dec 2018 13:34:42 +0000 (21:34 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 13 Dec 2018 02:23:17 +0000 (21:23 -0500)
commit6db831f4ef764ca19d7300d56ab9455af3cb930d
tree1babfdcebac6b223c44a4546764a99ee15de3424
parent6e1b731b535231e199c7810451c851398afccd33
scsi: hisi_sas: Make sg_tablesize consistent value

Sht->sg_tablesize is set in the driver, and it will be assigned to
shost->sg_tablesize in SCSI mid-layer. So it is not necessary to assign
shost->sg_table one more time in the driver.

In addition to the change, change each scsi_host_template.sg_tablesize
to HISI_SAS_SGE_PAGE_CNT instead of SG_ALL.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c