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>
Tue, 28 Nov 2017 15:56:26 +0000 (16:56 +0100)
commit7fa32e5ec28b1609abc0b797b58267f725fc3964
tree71055aa21cc5ab790e6386adac62e9a60af93348
parentfb2c445277e7b0b4ffe10de8114bad4eccaca948
Drivers: hv: vmbus: Fix a rescind issue

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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/channel_mgmt.c
include/linux/hyperv.h