The nvme_ns->ref was added to nvme_bdev_ns to support both multipath and OCSSD range. OCSSD range was to split a namespace into multiple partitions. However, OCSSD range was not used and removed to simplify multipath. When namespace is not split, nvme_ns->ref is 2 at the maximum. First is for populating namespace and second is for nvme_bdev. nvme_ns->populated is for populating namespace and nvme_ns->bdev is for nvme_bdev. Hence we can use nvme_ns->populated and nvme_ns->bdev directly instead of nvme_ns->ref. A few patches from this remove nvme_ns->ref and use nvme_ns->populated and nvme_ns->bdev instead. dThis patch inlines nvme_bdev_ns_detach() into the callers and remove it. The following patches will adjust the locations to update nvme_ns->populated and nvme_ns->bdev and then remove nvme_ns->ref. Removing nvme_ns->ref will be helpful to associate multiple namespaces into a single nvme_bdev for multipath. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I87581d39769681adc5e1fdf0b33680e31d958e47 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7095 Community-CI: Broadcom CI 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: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |