diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2012-12-01 09:46:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 13:46:39 -0500 |
commit | 7ae3e035195735f9b6ce3308b6240af877a41ea0 (patch) | |
tree | a33df83eaf8364a013c6dd98a87ae9463fc9cf9f | |
parent | 132368bd0b286457f83f56d0bbdecd85999562dc (diff) |
Drivers: hv: Turn off batched reading for util drivers
Util driver is not a performance critical driver and furthermore some
util services such as KVP can only handle one outstanding message
from the host. Turn off batched reading for util drivers.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/hv/hv_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index a0667de7a04c..a62a76062508 100644 --- a/drivers/hv/hv_util.c +++ b/drivers/hv/hv_util.c | |||
@@ -274,6 +274,16 @@ static int util_probe(struct hv_device *dev, | |||
274 | } | 274 | } |
275 | } | 275 | } |
276 | 276 | ||
277 | /* | ||
278 | * The set of services managed by the util driver are not performance | ||
279 | * critical and do not need batched reading. Furthermore, some services | ||
280 | * such as KVP can only handle one message from the host at a time. | ||
281 | * Turn off batched reading for all util drivers before we open the | ||
282 | * channel. | ||
283 | */ | ||
284 | |||
285 | set_channel_read_state(dev->channel, false); | ||
286 | |||
277 | ret = vmbus_open(dev->channel, 4 * PAGE_SIZE, 4 * PAGE_SIZE, NULL, 0, | 287 | ret = vmbus_open(dev->channel, 4 * PAGE_SIZE, 4 * PAGE_SIZE, NULL, 0, |
278 | srv->util_cb, dev->channel); | 288 | srv->util_cb, dev->channel); |
279 | if (ret) | 289 | if (ret) |