Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1435652
| From | kys@exchange.microsoft.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg() |
| Date | 2016-07-01 23:50 +0200 |
| Message-ID | <rQetY-3mA-17@gated-at.bofh.it> (permalink) |
| References | <rQetX-3mA-3@gated-at.bofh.it> <rQetX-3mA-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: K. Y. Srinivasan <kys@microsoft.com> 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> --- drivers/hv/connection.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index fcf8a02..78e6368 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -439,7 +439,7 @@ int vmbus_post_msg(void *buffer, size_t buflen) union hv_connection_id conn_id; int ret = 0; int retries = 0; - u32 msec = 1; + u32 usec = 1; conn_id.asu32 = 0; conn_id.u.id = VMBUS_MESSAGE_CONNECTION_ID; @@ -472,9 +472,9 @@ int vmbus_post_msg(void *buffer, size_t buflen) } retries++; - msleep(msec); - if (msec < 2048) - msec *= 2; + udelay(usec); + if (usec < 2048) + usec *= 2; } return ret; } -- 1.7.4.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] Drivers: hv: vmbus: Miscellaneous adjustments kys@exchange.microsoft.com - 2016-07-01 23:50 +0200 [PATCH 2/3] Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg() kys@exchange.microsoft.com - 2016-07-01 23:50 +0200 [PATCH 1/3] Drivers: hv: vmbus: Enable explicit signaling policy for NIC channels kys@exchange.microsoft.com - 2016-07-01 23:50 +0200
csiph-web