Commit 749cab85 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Sasha Levin

Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()

[ Upstream commit 8de0d7e9 ]

The current delay between retries is unnecessarily high and is negatively
affecting the time it takes to boot the system.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 38f9c4b9
...@@ -422,7 +422,7 @@ int vmbus_post_msg(void *buffer, size_t buflen) ...@@ -422,7 +422,7 @@ int vmbus_post_msg(void *buffer, size_t buflen)
union hv_connection_id conn_id; union hv_connection_id conn_id;
int ret = 0; int ret = 0;
int retries = 0; int retries = 0;
u32 msec = 1; u32 usec = 1;
conn_id.asu32 = 0; conn_id.asu32 = 0;
conn_id.u.id = VMBUS_MESSAGE_CONNECTION_ID; conn_id.u.id = VMBUS_MESSAGE_CONNECTION_ID;
...@@ -455,9 +455,9 @@ int vmbus_post_msg(void *buffer, size_t buflen) ...@@ -455,9 +455,9 @@ int vmbus_post_msg(void *buffer, size_t buflen)
} }
retries++; retries++;
msleep(msec); udelay(usec);
if (msec < 2048) if (usec < 2048)
msec *= 2; usec *= 2;
} }
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment