613d441364
By the last changes, not only standard namespace but also ocssd namespace has only one nvme_bdev, and standard namespace processes only the head of nvme_ns->bdevs. This patch changes the common and standard namespace specific part to process only the head of nvme_ns->bdevs. The following patch will replace the linked list nvme_ns->bdevs by the pointer nvme_ns->bdev. Add a particular error case that nvme_bdev is failed to create even if ctrlr has one namespace. If ctrlr has one namespace but the corresponding bdev is failed to create, nvme_ns->populated should be false and hence nvme_ns->bdevs should not be accessed. However the code had not assumed such case. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I5495882fad8c8a012305177179a46d4373ba75f5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5800 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: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |