Commit a5cd4a6d authored by Artur Paszkiewicz's avatar Artur Paszkiewicz Committed by Jim Harris
Browse files

raid: call spdk_bdev_module_examine_done() asynchronously in sb case



Don't call spdk_bdev_module_examine_done() util the sb examine has
actually completed.

Signed-off-by: default avatarArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Change-Id: I1e311e7d5dd7452e211dcd65e32b0eae322f2222
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24573


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarBen Walker <ben@nvidia.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent bbccfa09
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3885,8 +3885,8 @@ raid_bdev_examine_cont(struct spdk_bdev *bdev, const struct raid_bdev_superblock
	case 0:
		/* valid superblock found */
		SPDK_DEBUGLOG(bdev_raid, "raid superblock found on bdev %s\n", bdev->name);
		raid_bdev_examine_sb(sb, bdev, NULL, NULL);
		break;
		raid_bdev_examine_sb(sb, bdev, raid_bdev_examine_done, bdev);
		return;
	case -EINVAL:
		/* no valid superblock, check if it can be claimed anyway */
		raid_bdev_examine_no_sb(bdev);