numam-spdk/test
Maciej Szwed e68e2e749b lvol: do not unload/destroy lvs when operation on lvol is pending
There is a scenario where we can try do unload or remove
lvol store while lvol present on that lvol store is being
closed or destroyed.

Scenario:
1. send delete_bdev rpc command
2. command returns before lvol is actually closed/destroyed
   (does not wait for callback)
3. send destroy_lvol_store rpc command
4. lvs is destroyed before lvol is destroyed
5. lvol destroy callback is called on destroeyd lvol store

Aboive scenario can be reproduced using:
spdk/test/vhost/spdk_vhost.sh --integrity-lvol-scsi

Signed-off-by: Maciej Szwed <maciej.szwed@intel.com>
Change-Id: Ie715279195bd4b1145cf05d4f5a8477b4fac87f7
Reviewed-on: https://review.gerrithub.io/383595
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-10-26 17:23:58 -04:00
..
app app: spdk_app_fini no longer gives return code 2017-10-10 10:56:34 -04:00
blobfs/rocksdb test/blobfs: add timing for rocksdb benchmarks 2017-09-20 19:33:50 -04:00
cpp_headers test/cpp_headers: autogenerate header test files 2016-10-03 10:24:18 -07:00
iscsi_tgt test/iscsi: Add iscsi_tgt with NVML backend test 2017-10-19 13:00:27 -04:00
lib bdevio: call shutdown on proper thread 2017-10-23 11:55:59 -04:00
lvol test/lvol: fix typo in log message 2017-10-24 18:02:21 -04:00
nvmf test/nvmf: Add test scripts with FIO traffic and NVML backend 2017-10-23 11:54:57 -04:00
pmem test/pmem: RPC pmem functional tests. 2017-10-19 15:16:05 -04:00
unit lvol: do not unload/destroy lvs when operation on lvol is pending 2017-10-26 17:23:58 -04:00
vhost test/vhost: remove read tests from vhost initiator 2017-10-26 14:08:21 -04:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00