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: cunyinch <cunyin.chang@intel.com> Reviewed-on: https://review.gerrithub.io/365736 Tested-by: 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>
This commit is contained in:
parent
22f65e474d
commit
7c4fe3d2d3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user