scsi: hisi_sas: Don't bother clearing status buffer IU in task prep
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 5 Aug 2019 13:48:04 +0000 (21:48 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 02:13:15 +0000 (22:13 -0400)
commitd380f55503ed28461422546900baedc3b512b4b7
treef8dcfe78a34d033b506b88143385338c5a6306d6
parent445ee2de112a18419aeae72fdae4221cd90f2948
scsi: hisi_sas: Don't bother clearing status buffer IU in task prep

For struct hisi_sas_status_buffer, it contains struct hisi_sas_err_record
and iu[1024]. The struct iu[1024] will be filled fully by the response of
disks, so it is not need to initialize them to 0, but for the struct
hisi_sas_err_record, SAS controller only fill some fields of
hisi_sas_err_record according to hw designer, so it should be initialised
to 0.  After the change, cpu utilization percentage of memset() is changed
from 1.7% to 0.12%.

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