• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

linux-3.0.x for AP-SH4A-0A Board


Commit MetaInfo

Révision7cf375c453097d0dab7aee0c66fc6b7c1fbae763 (tree)
l'heure2011-08-05 13:58:32
AuteurK. Y. Srinivasan <kys@micr...>
CommiterGreg Kroah-Hartman

Message de Log

Staging: hv: netvsc: Increase the timeout value in the netvsc driver

commit 5c5781b3f88567211ecaaada13431af15c8c6003 upstream.

On some loaded windows hosts, we have discovered that the host may not
respond to guest requests within the specified time (one second)
as evidenced by the guest timing out. Fix this problem by increasing
the timeout to 5 seconds.

It may be useful to apply this patch to the 3.0 kernel as well.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Change Summary

Modification

--- a/drivers/staging/hv/netvsc.c
+++ b/drivers/staging/hv/netvsc.c
@@ -270,7 +270,7 @@ static int netvsc_init_recv_buf(struct hv_device *device)
270270 goto cleanup;
271271 }
272272
273- t = wait_for_completion_timeout(&net_device->channel_init_wait, HZ);
273+ t = wait_for_completion_timeout(&net_device->channel_init_wait, 5*HZ);
274274 BUG_ON(t == 0);
275275
276276
@@ -513,7 +513,7 @@ static int netvsc_connect_vsp(struct hv_device *device)
513513 if (ret != 0)
514514 goto cleanup;
515515
516- t = wait_for_completion_timeout(&net_device->channel_init_wait, HZ);
516+ t = wait_for_completion_timeout(&net_device->channel_init_wait, 5*HZ);
517517
518518 if (t == 0) {
519519 ret = -ETIMEDOUT;
--- a/drivers/staging/hv/rndis_filter.c
+++ b/drivers/staging/hv/rndis_filter.c
@@ -467,7 +467,7 @@ static int rndis_filter_query_device(struct rndis_device *dev, u32 oid,
467467 if (ret != 0)
468468 goto Cleanup;
469469
470- t = wait_for_completion_timeout(&request->wait_event, HZ);
470+ t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
471471 if (t == 0) {
472472 ret = -ETIMEDOUT;
473473 goto Cleanup;
@@ -543,7 +543,7 @@ static int rndis_filter_set_packet_filter(struct rndis_device *dev,
543543 if (ret != 0)
544544 goto Cleanup;
545545
546- t = wait_for_completion_timeout(&request->wait_event, HZ);
546+ t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
547547
548548 if (t == 0) {
549549 ret = -1;
@@ -600,7 +600,7 @@ static int rndis_filter_init_device(struct rndis_device *dev)
600600 }
601601
602602
603- t = wait_for_completion_timeout(&request->wait_event, HZ);
603+ t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
604604
605605 if (t == 0) {
606606 ret = -ETIMEDOUT;