summaryrefslogtreecommitdiff
path: root/drivers/hv
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2017-05-18 20:46:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 16:42:42 +0300
commite917a5e23a87e24931625c344daea834cd2d6f2f (patch)
treef5a9c761a0bab01b97a0927f5569b305168686dc /drivers/hv
parent1d10602d306cb7f70545b5e1166efc9409e7d384 (diff)
downloadlinux-e917a5e23a87e24931625c344daea834cd2d6f2f.tar.xz
drivers: hv: vmbus: Increase the time between retries in vmbus_post_msg()
Commit c0bb03924f1a ("Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()") increased the retry/wait limits of vmbus_post_msg() to address the new DoS protection policies in WS2016. Increase the time between retries to make the code more robust. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c
index c2d74ee95f60..59c11ff90d12 100644
--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
@@ -390,7 +390,7 @@ int vmbus_post_msg(void *buffer, size_t buflen, bool can_sleep)
else
mdelay(usec / 1000);
- if (usec < 256000)
+ if (retries < 22)
usec *= 2;
}
return ret;