Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 27 Aug 2014 23:25:32 +0000 (16:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:30:38 +0000 (23:30 -0700)
commit66be653083057358724d56d817e870e53fb81ca7
tree7dba96c32670164af532e770d00a5d2602003be1
parentfdeebcc62279119dbeafbc1a2e39e773839025fd
Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()

Eliminate calls to BUG_ON() by properly handling errors. In cases where
rollback is possible, we will return the appropriate error to have the
calling code decide how to rollback state. In the case where we are
transferring ownership of the guest physical pages to the host,
we will wait for the host to respond.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: <stable@vger.kernel.org>
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c