numam-spdk/scripts
Jim Harris f176436b69 test/bdev: wait for nbd device to become ready
Previously, we were waiting to find the target bdev as
registered before proceeding with nbd operations.  But
there can be a delay between when the bdev is registered
and when the nbd device becomes ready for block I/O
operations.  This delay has recently become longer as
lvol now performs I/O on registered bdevs to check for
an existing logical volume store.

So instead, check for the existence of the nbd device
in /proc/partitions output.

While here, also fix a bug in the nbd.c code - it needs
to wait for the poller to be unregistered before calling
spdk_nbd_stop().  Normally I would fix this in a separate
patch but because these issues are causing a lot of
failures in the test pool, I'm expediting this by putting
both fixes in one patch (so we can avoid a bunch of
re-runs).

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ia297337338f7eeee9b4c56b80e941d373c1a965d

Reviewed-on: https://review.gerrithub.io/385687
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-11-03 15:28:26 -04:00
..
ceph test/ceph: move ceph_raw.img to /var/tmp 2017-08-11 12:35:18 -04:00
perf/nvme scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
vagrant vagrant: fix Vagrant provisioning 2017-09-11 18:25:17 -04:00
autotest_common.sh test/bdev: wait for nbd device to become ready 2017-11-03 15:28:26 -04:00
build_kmod.sh spdk: add the ioat_kperf test tool to autobuild system 2016-01-22 07:58:13 -07:00
check_format.sh rte_virtio: use spdk/stdinc.h 2017-10-24 17:19:44 -04:00
detect_cc.sh detect_cc.sh: further fix CC_TYPE generation 2017-05-11 16:45:24 -07:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py iscsi: Add an iscsi target application 2016-08-04 13:15:33 -07:00
gen_nvme.sh bdev/nvme: Names are now explicitly assigned by the user 2017-03-15 17:42:45 -07:00
genconfig.py genconfig.py: use print() for Python 3 compat 2017-06-02 19:46:47 -04:00
pkgdep.sh bdev_pmem: initial implementation of persistent memory bdev 2017-09-29 14:04:32 -04:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh fio: Add a script to prep a system for benchmarks 2017-05-31 04:00:41 -04:00
rpc.py RPC: Add rpc support to update firmware. 2017-10-31 12:49:31 -04:00
setup.sh scripts/setup: update PCI device ID defines for virtio-scsi 2017-10-18 12:33:35 -04:00