numam-spdk/test/bdev/bdevperf
Shuhei Matsumoto 595173aaba bdevperf: Make bdevperf_construct_targets() asynchronous by sentinel value
Follow the idea of bdev_get_iostat in module/bdev/rpc/bdev_rpc.c.

Add a global variable g_bdev_count and then set it to 1 as sentinel
value in bdev_construct_targets().

Subsequent patches will make _bdevperf_construct_targets() asynchronous.
Then bdevperf_construct_targets() will be truely asynchronous.

This patch is too small to be an independent patch but keep to
hold previous review result.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I49d0b6e6d61df65d4eb31c402f98cc4300482e20
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/639
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-02-28 14:38:15 +00:00
..
.gitignore test: move the bdev directory up one level 2018-03-23 19:45:09 -04:00
bdevperf.c bdevperf: Make bdevperf_construct_targets() asynchronous by sentinel value 2020-02-28 14:38:15 +00:00
bdevperf.py bdevperf: do not start tests until RPC is sent 2019-07-10 05:11:25 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00