50b51bc831
When construct_raid_bdev RPC is callled, even if all adding base bdevs to it fail, a raid bdev with no base bdev should exist and be in the configuring state. Extract raid_bdev_create() from raid_bdev_add_base_bdev() and put it before starting iteration of raid_bdev_add_base_bdev(). This change cam be applied to .INI config file too. Change-Id: Ia71aca0bbdb33049fe5bd9b8fd8163c99c032401 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/424148 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Kunal Sablok <kunal.sablok@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>