bdevperf: only count successful IOs in completed IOs

Change-Id: I5a51d03c2cb4f2538b2b3567741c524991af46fc
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/391597
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
GangCao 2017-12-13 02:04:29 -05:00 committed by Jim Harris
parent ec6a1afbdb
commit 9bbf06a652

View File

@ -268,7 +268,10 @@ bdevperf_complete(struct spdk_bdev_io *bdev_io, bool success, void *cb_arg)
} }
target->current_queue_depth--; target->current_queue_depth--;
target->io_completed++;
if (success) {
target->io_completed++;
}
TAILQ_INSERT_TAIL(&target->task_list, task, link); TAILQ_INSERT_TAIL(&target->task_list, task, link);