numam-spdk/test
Shuhei Matsumoto 723d9443f9 bdev/nvme: Separate ref. count between nvme_bdev_ctrlr and nvme_bdev_ns
Separate reference count of nvme_bdev_ctrlr between nvme_bdev_ctrlr
and nvme_bdev_ns.

Set ctrlr->ref to 1 when creating ctrlr, increment ctrlr->ref when
populating ns, decrement ctrlr->ref when destructing ctrlr or
when ns->ref becomes 0, and destruct ctrlr actually when ctrlr->ref is 0.

Set ns->ref to 1 when populating ns, increment ns->ref when
adding bdev to ns, decrement ns->ref when depopulating ns or removing
bdev from ns, and decrement ns->ctrlr->ref when ns->ref becomes 0.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I7810384d97a174d8f55d316e5cdf2a9ef4a11432
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5608
Community-CI: Broadcom CI
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: Changpeng Liu <changpeng.liu@intel.com>
2021-01-05 09:43:09 +00:00
..
app build: add ufc to SYS_LIBS in spdk.common.mk 2020-12-28 13:32:06 +00:00
bdev event: add "A" to SPDK_APP_GETOPT_STRING 2020-12-31 08:28:08 +00:00
blobfs build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
blobstore bdev: Make the small and large buffer pool configurable. 2020-12-28 14:05:34 +00:00
common pkgdep/git: Use .x branch for the 20.01 LTS ref build 2021-01-05 09:38:15 +00:00
compress script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
config_converter vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dd test/dd: Lower the number of block size tests 2020-08-20 09:27:21 +00:00
dpdk_memory_utility build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
env test: add some missing stubs 2020-11-02 11:23:21 +00:00
event build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
external_code test/external_code: use -pthread instead of -lpthread 2020-12-28 13:32:06 +00:00
ftl scripts: replace PCI_WHITELIST with PCI_ALLOWED 2020-12-03 09:41:07 +00:00
fuzz test/iscsi: remove VPP tests 2020-08-17 08:19:46 +00:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
json_config script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
lvol test/lvol: rename lvol test script 2020-10-20 08:54:53 +00:00
make event: add pci_allowed/pci_blocked to spdk_app_opts 2020-12-03 09:41:07 +00:00
nvme test: Replace spdk/nvmecli with stock nvmecli 2021-01-04 16:28:01 +00:00
nvmf test: Replace spdk/nvmecli with stock nvmecli 2021-01-04 16:28:01 +00:00
ocf test/ocf: remove unused nvme_cfg() function 2020-11-05 09:37:55 +00:00
openstack script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
pmem build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc_client build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
spdkcli script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
unit bdev/nvme: Separate ref. count between nvme_bdev_ctrlr and nvme_bdev_ns 2021-01-05 09:43:09 +00:00
vhost test/vhost: Fix traddr lookup 2020-12-28 13:17:20 +00:00
vmd test: replace VMD_WHITELIST with VMD_ALLOWED 2020-12-03 09:41:07 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00