stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()" has been added to the 4.4-stable tree
@ 2017-04-21 15:17 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-04-21 15:17 UTC (permalink / raw)
  To: kys, gregkh, sumit.semwal; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

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

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drivers-hv-vmbus-reduce-the-delay-between-retries-in-vmbus_post_msg.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 8de0d7e951826d7592e0ba1da655b175c4aa0923 Mon Sep 17 00:00:00 2001
From: "K. Y. Srinivasan" <kys@microsoft.com>
Date: Fri, 1 Jul 2016 16:26:36 -0700
Subject: Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()

From: K. Y. Srinivasan <kys@microsoft.com>

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>

---
 drivers/hv/connection.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
@@ -429,7 +429,7 @@ int vmbus_post_msg(void *buffer, size_t
 	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;
@@ -462,9 +462,9 @@ int vmbus_post_msg(void *buffer, size_t
 		}
 
 		retries++;
-		msleep(msec);
-		if (msec < 2048)
-			msec *= 2;
+		udelay(usec);
+		if (usec < 2048)
+			usec *= 2;
 	}
 	return ret;
 }


Patches currently in stable-queue which might be from kys@microsoft.com are

queue-4.4/drivers-hv-get-rid-of-timeout-in-vmbus_open.patch
queue-4.4/drivers-hv-don-t-leak-memory-in-vmbus_establish_gpadl.patch
queue-4.4/drivers-hv-vmbus-reduce-the-delay-between-retries-in-vmbus_post_msg.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-21 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 15:17 Patch "Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()" has been added to the 4.4-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).