Drivers: hv: vmbus: Fix a rescind issue
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 14 Nov 2017 13:53:33 +0000 (06:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:52:49 +0000 (09:52 +0100)
commit3f77a2c68ba8377f7f7ddcadff5ffda238cb83db
treeccc3dcf65975d45baf35d64f00da909678021cf0
parent6c802ac42f970976d26241068e7202a84c9fd8b7
Drivers: hv: vmbus: Fix a rescind issue

commit 7fa32e5ec28b1609abc0b797b58267f725fc3964 upstream.

The current rescind processing code will not correctly handle
the case where the host immediately rescinds a channel that has
been offerred. In this case, we could be blocked in the open call and
since the channel is rescinded, the host will not respond and we could
be blocked forever in the vmbus open call.i Fix this problem.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/channel_mgmt.c
include/linux/hyperv.h