Spdk/test/unit/lib/bdev
Shuhei Matsumoto 0939c07505 ut/bdev_ocssd: Clean up controller destruction
Previously local boolean variable empty was used to destruct a
controller in delete_nvme_bdev_controller(). However, it was hard
to understand and did not work well with refactoring.

Using reference count is more sophisticated and works well, and hence
done in this patch.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I59d0552c16653495fa55e9bfe4a2c0a316a204c3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4355
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
2020-11-16 12:23:04 +00:00
..
bdev_ocssd.c ut/bdev_ocssd: Clean up controller destruction 2020-11-16 12:23:04 +00:00
bdev_zone.c bdev/zone: Use spdk_bdev_open_ext() instead of spdk_bdev_open() 2020-10-16 23:12:03 +00:00
bdev.c test: add md_buf unit test in splitting test 2020-11-11 00:55:08 +00:00
compress.c test: add some missing stubs 2020-11-02 11:23:21 +00:00
crypto.c bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
gpt module/bdev_gpt: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
mt test: add some missing stubs 2020-11-02 11:23:21 +00:00
part.c bdev: remove legacy config support 2020-10-20 02:42:16 +00:00
pmem bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
raid bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
scsi_nvme.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
vbdev_lvol.c bdev/lvol: Pass bdev name instead of bdev pointer to vbdev_lvs_create 2020-10-20 08:52:29 +00:00
vbdev_zone_block.c bdev/zone: Use spdk_bdev_open_ext() instead of spdk_bdev_open() 2020-10-16 23:12:03 +00:00
Makefile ut/raid: put bdev_raid.c into 'raid' subdirectory 2020-02-20 14:40:19 +00:00