examples/perf: fill buffer with non-zeroed data when QD=1

Change-Id: Ibbe601489d16a9585e56de1c95fe31e9a602a7e0
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/366387
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:
Changpeng Liu 2017-06-22 16:48:55 +08:00 committed by Daniel Verkamp
parent 728d001395
commit 633f975e58

View File

@ -432,7 +432,7 @@ static void task_ctor(struct rte_mempool *mp, void *arg, void *__task, unsigned
fprintf(stderr, "task->buf spdk_dma_zmalloc failed\n");
exit(1);
}
memset(task->buf, id % 8, g_io_size_bytes);
memset(task->buf, id % 8 + 1, g_io_size_bytes);
}
static void io_complete(void *ctx, const struct spdk_nvme_cpl *completion);