scsi: mpi3mr: A performance fix
authorTomas Henzl <thenzl@redhat.com>
Tue, 3 Sep 2024 14:47:29 +0000 (16:47 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 13 Sep 2024 00:34:44 +0000 (20:34 -0400)
commit24d7071d964574cca41fa72a10c211221af37aec
tree503509b7ea75e55691fbd85915d3fef9481689ca
parent0c40f079f1c808e7e480c795a79009f200366eb1
scsi: mpi3mr: A performance fix

Commit 0c52310f2600 ("hrtimer: Ignore slack time for RT tasks in
schedule_hrtimeout_range()") effectivelly shortens a sleep in a polling
function in the driver.  That is causing a performance regression as the
new value of just 2us is too low, in certain tests the perf drop is ~30%.
Fix this by adjusting the sleep to 20us (close to the previous value).

Reported-by: Jan Jurca <jjurca@redhat.com>
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Link: https://lore.kernel.org/r/20240903144729.37218-1-thenzl@redhat.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr.h
drivers/scsi/mpi3mr/mpi3mr_fw.c