Skip to content

Commit f803416

Browse files
kattisrinivasangregkh
authored andcommitted
Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()
commit 8de0d7e951826d7592e0ba1da655b175c4aa0923 upstream. The current delay between retries is unnecessarily high and is negatively affecting the time it takes to boot the system. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 567dd48 commit f803416

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/hv/connection.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ int vmbus_post_msg(void *buffer, size_t buflen)
429429
union hv_connection_id conn_id;
430430
int ret = 0;
431431
int retries = 0;
432-
u32 msec = 1;
432+
u32 usec = 1;
433433

434434
conn_id.asu32 = 0;
435435
conn_id.u.id = VMBUS_MESSAGE_CONNECTION_ID;
@@ -462,9 +462,9 @@ int vmbus_post_msg(void *buffer, size_t buflen)
462462
}
463463

464464
retries++;
465-
msleep(msec);
466-
if (msec < 2048)
467-
msec *= 2;
465+
udelay(usec);
466+
if (usec < 2048)
467+
usec *= 2;
468468
}
469469
return ret;
470470
}

0 commit comments

Comments
 (0)