Factor out the common operation to destruct nvme_bdev_ctrlr further into an new helper function _nvme_bdev_ctrlr_destruct() from remove_cb(), bdev_nvme_delete(), and bdev_nvme_library_fini(). The next patch will use SPDK message to fix the race condition by locking/unlocking during linked list parse. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: If5392bebcf830fac6165aa424b06aec0c9274dc8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5320 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
bdev_nvme_cuse_rpc.c | ||
bdev_nvme_rpc.c | ||
bdev_nvme.c | ||
bdev_nvme.h | ||
bdev_ocssd_rpc.c | ||
bdev_ocssd.c | ||
bdev_ocssd.h | ||
common.c | ||
common.h | ||
Makefile | ||
nvme_rpc.c | ||
vbdev_opal_rpc.c | ||
vbdev_opal.c | ||
vbdev_opal.h |