summaryrefslogtreecommitdiff
path: root/drivers/scsi/gvp11.h
diff options
context:
space:
mode:
authorManoj N. Kumar <manoj@linux.vnet.ibm.com>2016-03-25 22:26:49 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2016-03-29 03:43:34 +0300
commitea76543127da32dec28af0a13ea1b06625fc085e (patch)
tree9112ed10ec3a8d4395f2964aa29510b7238dedc8 /drivers/scsi/gvp11.h
parent9526f36026f778e82b5175249443854c03b2e660 (diff)
downloadlinux-ea76543127da32dec28af0a13ea1b06625fc085e.tar.xz
cxlflash: Move to exponential back-off when cmd_room is not available
While profiling the cxlflash_queuecommand() path under a heavy load it was found that number of retries to find cmd_room was fairly high. There are two problems with the current back-off: a) It starts with a udelay of 0 b) It backs-off linearly Tried several approaches (a higher multiple 10*n, 100*n, as well as n^2, 2^n) and found that the exponential back-off(2^n) approach had the least overall cost. Cost as being defined as overall time spent waiting. The fix is to change the linear back-off to an exponential back-off. This solution also takes care of the problem with the initial delay (starts with 1 usec). Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/gvp11.h')
0 files changed, 0 insertions, 0 deletions