[PATCH V2 2/5] Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()

2014-08-27 Thread K. Y. Srinivasan
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

[PATCH V2 2/5] Drivers: hv: vmbus: Cleanup vmbus_teardown_gpadl()

2014-08-27 Thread K. Y. Srinivasan
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