Use spdk_thread_send_msg() for notification of bdev hotplug and test completion instead of spdk_event_call(). Each I/O target group is associated with SPDK thread now. Hence use spdk_thread_send_msg() to do bdevperf_target_gone() on the specified thread. The group is held in struct io_target by the previous patchm and remove target->lcore safely because it is not used anymore. Then use spdk_thread_send_msg() to notify master thread. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I88eadbdd1f120161cf484793f14f5eb0b44d010f Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478818 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
bdevperf.c | ||
bdevperf.py | ||
Makefile |