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> |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile | ||
unittest.sh |