Commit 7c4fe3d2 authored by cunyinch's avatar cunyinch Committed by Jim Harris
Browse files

example/hotplug: quit from hotplug once the count of hotplug is correct.



This patch will cut down the autotest time.

Change-Id: Ica23bbe39884f1f51f42f836e7c9fa9007c06693
Signed-off-by: default avatarcunyinch <cunyin.chang@intel.com>
Reviewed-on: https://review.gerrithub.io/365736


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 22f65e47
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -358,6 +358,10 @@ io_loop(void)
			print_stats();
			next_stats_tsc += g_tsc_rate;
		}

		if (g_insert_times == g_expected_insert_times && g_removal_times == g_expected_removal_times) {
			break;
		}
	}

	TAILQ_FOREACH_SAFE(dev, &g_devs, tailq, dev_tmp) {