Drivers: hv: get rid of timeout in vmbus_open()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 10 Jun 2016 00:08:56 +0000 (17:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Apr 2017 07:09:32 +0000 (09:09 +0200)
commit567dd48c4e71a8d6d3014adb153993ef8608722c
tree4fbd1e1f2e6df2827854e8005b6ab6784ea0f09b
parent5ab982a01201749f49b5a6a23b45b20a03490ce5
Drivers: hv: get rid of timeout in vmbus_open()

commit 396e287fa2ff46e83ae016cdcb300c3faa3b02f6 upstream.

vmbus_teardown_gpadl() can result in infinite wait when it is called on 5
second timeout in vmbus_open(). The issue is caused by the fact that gpadl
teardown operation won't ever succeed for an opened channel and the timeout
isn't always enough. As a guest, we can always trust the host to respond to
our request (and there is nothing we can do if it doesn't).

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
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/channel.c