hv_vmbus: Add gradually increased delay for retries in vmbus_post_msg()
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 27 Mar 2015 16:10:14 +0000 (09:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 14:18:02 +0000 (16:18 +0200)
commite1c0d82dab4a4605d3bd1968436f030dfed4a829
treea56cd6795efdc91310c013a6bb4621947cb937c7
parent0a1a86ac046091d7228c9f3a283dea5be96275dd
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>
drivers/hv/connection.c