0f4cebebbf
Factor out registering nvme_bdev_ctrlr as io_device and populating namespaces after creating nvme_bdev_ctrlr into a helper function. We extract spdk_io_device_register() from nvme_bdev_ctrlr_create() because free(NULL) is correct but spdk_io_device_unregister(NULL) is not allowed, and hence it is very simple if we call spdk_io_device_register() only after nvme_bdev_ctrlr is successfully created. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ia4d85ccf96f3ef62e51db9d08ec606d4100c7ebd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8317 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
sock | ||
Makefile |