+11
−7
Loading
nvme_bdev_ctrlr is valid while populating namespaces of the nvme_bdev_ctrlr regardless of the result. nvme_bdev_ns holds nvme_bdev_ctrlr by its pointer, ctrlr. Hence it is not necessary for nvme_ctrlr_populate_namespaces_done() to use nvme_bdev_ctrlr_get_by_name() to get nvme_bdev_ctrlr. To simplify the code, add nvme_bdev_ctrlr parameter to nvme_ctrlr_populate_namespaces_done() and remove the nvme_bdev_ctrlr_get_by_name() call from nvme_ctrlr_populate_namespaces_done(). Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ic2013842fad16ea0de49c18b5b853d147c23a6b2 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6621 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:
<dongx.yi@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>