90440e1fe1
Previously unit tests were run on the same thread that called the SPDK init. The bdevio app had 2 threads: one for init&ut and one for I/O processing. When doing any asynchronous I/O, the init&ut thread was waiting via pthread condition variable for I/O thread to finish it's work. With upcoming virtio-initiator RESET implementation, the reset I/O has to be processed by a poller on the init thread. When init&ut thread sends an RESET requests the app deadlocks, as pollers on the UT thread won't be processed until I/O thread wakes the condition variable. This patch separates ut thread from init, so that init can run it's tasks in background even when ut thread is waiting for condition variable. Change-Id: Id4b6962f4288e6a07354dbf1d3aec0d0fd9de916 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/382663 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> |
||
---|---|---|
.. | ||
app | ||
blobfs/rocksdb | ||
cpp_headers | ||
iscsi_tgt | ||
lib | ||
lvol | ||
nvmf | ||
unit | ||
vhost | ||
Makefile | ||
spdk_cunit.h |