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:
parent
ec6a1afbdb
commit
9bbf06a652
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user