+94
−58
Loading
We break up the init process into two steps per node - init and populate. init returns void because it cannot fail. This prepares for init'ing all channel_nodes first, before we populate them. This will make it easier to unwind when there is an allocation failure, because we can safely iterate all of the nodes, since they have all been initialized, even if they weren't populated. Signed-off-by:Jim Harris <jim.harris@samsung.com> Change-Id: I9dc02a63aed8131316465f0441557864582468c7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24541 Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by:
Ben Walker <ben@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>