Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block/nbd: extract the common cleanup code
The BDRVNBDState cleanup code is common in two places, add nbd_clear_bdrvstate() function to do these cleanups. Suggested-by: Stefano Garzarella <[email protected]> Signed-off-by: Pan Nengyuan <[email protected]> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> Message-Id: <[email protected]> Reviewed-by: Eric Blake <[email protected]> [eblake: fix compilation error and commit message] Signed-off-by: Eric Blake <[email protected]>
- Loading branch information