Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e917a5e2 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman
Browse files

drivers: hv: vmbus: Increase the time between retries in vmbus_post_msg()



Commit c0bb0392 ("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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d10602d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;