]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: esp_scsi: Optimize PIO loops
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 16 Oct 2018 05:31:25 +0000 (16:31 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 18 Oct 2018 01:38:29 +0000 (21:38 -0400)
commit403841c9122f1ad53bc9c6f176cfd92b0020078e
treeabb72e835290ec88877dcab7f5ee79a6b14d9919
parent2acb41f34207e52a50bf3bd6d3f245004f9f54d8
scsi: esp_scsi: Optimize PIO loops

Avoid function calls in the inner PIO loops. On a Centris 660av this
improves throughput for sequential read transfers by about 40% and
sequential write by about 10%.

Unfortunately it is not possible to have methods like .esp_write8 placed
inline so this is always going to be slow, even with LTO.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esp_scsi.c