Commit 1e148deb authored by Konrad Sztyber's avatar Konrad Sztyber
Browse files

test/raid: wait for examine after re-adding passthru bdev



bdev_passthru_create doesn't wait until the new bdev is examined, so
there's a race between the raid bdev examining it and the bdev_get_bdevs
call.

Fixes: #3498

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I51b24154910a4d57f3665312d46322b95922bca0
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24771


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 78a5ce29
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -897,6 +897,7 @@ function raid_resize_superblock_test() {

	$rpc_py bdev_passthru_delete pt0
	$rpc_py bdev_passthru_create -b malloc0 -p pt0
	$rpc_py bdev_wait_for_examine

	# After the passthru bdev is re-created, the RAID bdev should start from
	# superblock and its size should be the same as after it was resized.