Spdk/test/bdev
Shuhei Matsumoto f66aea7fc3 bdevperf: Use zcopy APIs for simple write I/O case
Add a bdev_io pointer to struct bdevperf_task.

In bdevperf_zcopy_get_buf_complete() which is the callback to
spdk_bdev_zcopy_start(), bdev_io is saved into the current task.

Then bdevperf_submit_task() will call spdk_bdev_zcopy_end()
by using the saved bdev_io.

Besides, when spdk_bdev_zcopy_start() is called with populate=false,
increment target->current_queue_depth when it completes successfully,
and do not increment target->current_queue_depth when the corresponding
spdk_bdev_zcopy_end() is called with commit=true.

The reason is that IO processing is already started when
spdk_bdev_zcopy_start() is called.

The next patch will use zcopy APIs for write I/O with verify or
reset cases.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I12f3b1ccac726abe345a64f06e33d65d2a3538fd
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467900
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
2019-09-19 04:40:57 +00:00
..
bdevio test/bdev: Use thread library in bdevio 2019-09-18 16:45:05 +00:00
bdevperf bdevperf: Use zcopy APIs for simple write I/O case 2019-09-19 04:40:57 +00:00
bdev_raid.sh scripts/rpc: Change rpc construct_malloc_bdev to bdev_malloc_create 2019-08-14 22:15:08 +00:00
bdev.conf.in test/blockdev: remove dependency on brd kernel module 2019-07-23 22:54:39 +00:00
blockdev.sh rpc: Rename passthru related rpcs. 2019-09-19 04:17:54 +00:00
gen_crypto.sh scripts: use -n instead of ! -z 2019-08-08 21:27:40 +00:00
Makefile test: move the bdev directory up one level 2018-03-23 19:45:09 -04:00
nbd_common.sh test: replace backticks with dollar-parenthesis syntax 2019-06-17 07:19:03 +00:00