ut/accel: always increment ops->count in mocked submit_tasks
It makes it possible to check the number of times a task was submitted to be executed by a module, even if we defined a submit() function for that opcode. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Id6b592b0461c722bf22ab04d5bad1a7542bb17e7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16546 Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
parent
45b7fb23b1
commit
225202447b
@ -963,6 +963,7 @@ ut_sequnce_submit_tasks(struct spdk_io_channel *ch, struct spdk_accel_task *task
|
||||
{
|
||||
struct ut_sequence_operation *op = &g_seq_operations[task->op_code];
|
||||
|
||||
op->count++;
|
||||
if (op->submit != NULL) {
|
||||
return op->submit(ch, task);
|
||||
}
|
||||
@ -977,7 +978,6 @@ ut_sequnce_submit_tasks(struct spdk_io_channel *ch, struct spdk_accel_task *task
|
||||
sizeof(struct iovec) * op->dst_iovcnt), 0);
|
||||
}
|
||||
|
||||
op->count++;
|
||||
if (op->submit_status != 0) {
|
||||
return op->submit_status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user