Spdk/test/lib/bdev
Dariusz Stojaczyk 90440e1fe1 test/bdevio: do unit tests on their own thread
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>
2017-10-17 15:21:09 -04:00
..
bdevio test/bdevio: do unit tests on their own thread 2017-10-17 15:21:09 -04:00
bdevperf bdevperf: use blocks API 2017-09-12 11:16:50 -04:00
nbd nbd: allow exporting more than one NBD at once 2017-08-07 17:56:21 -04:00
bdev.conf.in bdev/aio: allow user to override block size 2017-08-11 19:36:30 -04:00
blockdev.sh bdev: remove bdev_opened_for_write restriction 2017-09-20 14:43:32 -04:00
common.c test/bdev: limit memory size to 1GB 2017-08-14 13:14:47 -04:00
Makefile test/bdev: add nbd test app 2017-06-23 13:01:04 -04:00