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 <sgarzare@redhat.com> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <1575517528-44312-2-git-send-email-pannengyuan@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> [eblake: fix compilation error and commit message] Signed-off-by: Eric Blake <eblake@redhat.com> (cherry picked from commit 7f49366) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
- Loading branch information