summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 041acf4)
raw | patch | inline | side by side (parent: 041acf4)
author | K. Y. Srinivasan <kys@microsoft.com> | |
Mon, 7 Jul 2014 23:34:24 +0000 (16:34 -0700) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Thu, 17 Jul 2014 23:21:05 +0000 (16:21 -0700) |
commit affb1aff300ddee54df307812b38f166e8a865ef upstream.
Starting with Win8, we have implemented several optimizations to improve the
scalability and performance of the VMBUS transport between the Host and the
Guest. Some of the non-performance critical services cannot leverage these
optimization since they only read and process one message at a time.
Make adjustments to the callback dispatch code to account for the way
non-performance critical drivers handle reading of the channel.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Starting with Win8, we have implemented several optimizations to improve the
scalability and performance of the VMBUS transport between the Host and the
Guest. Some of the non-performance critical services cannot leverage these
optimization since they only read and process one message at a time.
Make adjustments to the callback dispatch code to account for the way
non-performance critical drivers handle reading of the channel.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/connection.c | patch | blob | history |
index 05827eccc53ab39a4488033308cd3ef5bbce1c60..ce5a9f2584f370bee43746bbe7ce0b81d99278cb 100644 (file)
--- a/drivers/hv/connection.c
+++ b/drivers/hv/connection.c
*/
do {
- hv_begin_read(&channel->inbound);
+ if (read_state)
+ hv_begin_read(&channel->inbound);
channel->onchannel_callback(arg);
- bytes_to_read = hv_end_read(&channel->inbound);
+ if (read_state)
+ bytes_to_read = hv_end_read(&channel->inbound);
+ else
+ bytes_to_read = 0;
} while (read_state && (bytes_to_read != 0));
} else {
pr_err("no channel callback for relid - %u\n", relid);