summaryrefslogtreecommitdiffstats
path: root/crypto/ablk_helper.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2015-03-27 09:10:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 16:18:02 +0200
commite1c0d82dab4a4605d3bd1968436f030dfed4a829 (patch)
treea56cd6795efdc91310c013a6bb4621947cb937c7 /crypto/ablk_helper.c
parent0a1a86ac046091d7228c9f3a283dea5be96275dd (diff)
downloadlinux-e1c0d82dab4a4605d3bd1968436f030dfed4a829.tar.gz
linux-e1c0d82dab4a4605d3bd1968436f030dfed4a829.tar.bz2
linux-e1c0d82dab4a4605d3bd1968436f030dfed4a829.zip
hv_vmbus: Add gradually increased delay for retries in vmbus_post_msg()
Most of the retries can be done within a millisecond successfully, so we sleep 1ms before the first retry, then gradually increase the retry interval to 2^n with max value of 2048ms. Doing so, we will have shorter overall delay time, because most of the cases succeed within 1-2 attempts. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/ablk_helper.c')
0 files changed, 0 insertions, 0 deletions