bdev/raid: Remove duplicated and not enough state check in RPC
When check_and_remove_raid_bdev(raid_cfg) is called, raid_bdev must be in configuring state. However, offline state will be probable as well. Besides similar and more comprehensive state check is done in raid_bdev_cleanup(). Hence remove this check. Change-Id: I8526da51828f18a8393afbd3d81c0a52f2d33261 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/423620 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Kunal Sablok <kunal.sablok@intel.com>
This commit is contained in:
parent
a295285bf5
commit
12881ad9bc
@ -234,11 +234,6 @@ check_and_remove_raid_bdev(struct raid_bdev_config *raid_cfg)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* raid should be in configuring state as this function is used to cleanup
|
||||
* the raid during unsuccessful construction of raid
|
||||
*/
|
||||
assert(raid_bdev->state == RAID_BDEV_STATE_CONFIGURING);
|
||||
for (uint32_t i = 0; i < raid_bdev->num_base_bdevs; i++) {
|
||||
assert(raid_bdev->base_bdev_info != NULL);
|
||||
if (raid_bdev->base_bdev_info[i].bdev) {
|
||||
|
Loading…
Reference in New Issue
Block a user