Drivers: hv: vmbus: Prevent sending data on a rescinded channel
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 7 Dec 2016 09:16:28 +0000 (01:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jan 2017 20:46:41 +0000 (21:46 +0100)
commite7e97dd8b77ee7366f2f8c70a033bf5fa05ec2e0
tree79d68d09423a871fd74a900df6d2a9ae5088db60
parent56ef6718a1d8d77745033c5291e025ce18504159
Drivers: hv: vmbus: Prevent sending data on a rescinded channel

After the channel is rescinded, the host does not read from the rescinded channel.
Fail writes to a channel that has already been rescinded. If we permit writes on a
rescinded channel, since the host will not respond we will have situations where
we will be unable to unload vmbus drivers that cannot have any outstanding requests
to the host at the point they are unoaded.

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/ring_buffer.c