bdev/error: release bdev and close desc on shutdown
Change-Id: I77ce763a76f49e0fe3044d5271a5453d0da7a360 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/373411 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Cunyin Chang <cunyin.chang@intel.com> Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
f4f973e7d4
commit
e8b1c452bd
@ -181,6 +181,14 @@ vbdev_error_disk_free(struct vbdev_error_disk *disk)
|
||||
return;
|
||||
}
|
||||
|
||||
if (disk->base_bdev) {
|
||||
spdk_bdev_module_release_bdev(disk->base_bdev);
|
||||
}
|
||||
|
||||
if (disk->base_bdev_desc) {
|
||||
spdk_bdev_close(disk->base_bdev_desc);
|
||||
}
|
||||
|
||||
free(disk->disk.name);
|
||||
free(disk);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user