scsi: aacraid: Fix PD performance regression over incorrect qd being set
authorRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Fri, 22 Jun 2018 13:55:47 +0000 (06:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:06:09 +0000 (12:06 -0400)
commit59b433c825569ce251371485f0e29fca888b549d
treeaf2450f7e6d1adab751373ac96bd1045a3553135
parent63ce3c384db26494615e3c8972bcd419ed71f4c4
scsi: aacraid: Fix PD performance regression over incorrect qd being set

The driver fails to set the correct queue depth for native devices, due to
failing to set the device type prior to calling aac_set_safw_target_qd().
This results in slave configure setting the queue depth to 1.

This causes around 30% performance degradation. Fixed by setting the dev
type before trying to set queue depth.

Reported-by: Steve Best <sbest@redhat.com>
Fixes: 0bcb45fb20c21 ("scsi: aacraid: Add helper function to set queue depth")
cc: stable@vger.kernel.org
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: David Carroll <David.Carroll@microsemi.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aachba.c