Spdk/test
Jim Harris 671b77e5cd bdev: remove vbdevs and base_bdevs arrays
The intents of these arrays was to keep track in the
bdev layer of all base<->virtual bdev relationships -
i.e. which member disk bdevs make up a RAID bdev,
which logical volume bdevs are associated with a
bdev that contains an lvolstore, etc.

Currently none of this is used however.  And trying
to keep track in the bdev layer instead of asking
the bdev modules for the relationships has a number
of complications.  Early one, we tried to do this
with TAILQs - but that doesn't work since this can't
be done with a single TAILQ_ENTRY in the bdev
structures.  So we moved to arrays - that works a bit
better, but then the pointer arrays have to be
realloc'd which isn't ideal.

The biggest problem though with these arrays is that
they held bdev pointers - not bdev descriptor pointers.
It's not really valid to access bdevs without a
descriptor - the descriptors are what make sure active
references are accounted for when a bdev is hotplugged.
Of course the bdev layer knows when a bdev is getting
removed and could go and do the updates to these
arrays separately - but that just seems very convoluted.

So for now just remove these arrays completely.  If
there is a future need for the bdev layer to
understand relationships between bdevs, we can add
module APIs so that the generic layer can ask
the modules about the relationships.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I99ef1068240bff1262f64f234260cf2fb44df51d
Reviewed-on: https://review.gerrithub.io/420932
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: GangCao <gang.cao@intel.com>
2018-08-17 00:11:03 +00:00
..
app jsoncat, histogram_perf: add missing dependencies 2018-08-16 14:27:18 +00:00
bdev bdevio: parse all available cmdline options 2018-08-13 17:30:10 +00:00
blobfs app: allow full-name command line options 2018-08-13 17:30:10 +00:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test/iscsi: Add installation of socat in vm_setup.sh configuration 2018-08-15 18:09:46 +00:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env test/vtophys: reduce amount of memory requested 2018-07-26 05:28:52 +00:00
event test/event_perf: use less memory 2018-07-26 05:28:52 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt autotest: add unmap,flush,reset testing for iscsi initiator. 2018-08-15 17:36:40 +00:00
json_config app: drop -w parameter (wait for rpc init) 2018-08-13 17:30:10 +00:00
lvol test: refactor the run_test function to add detailed information 2018-08-15 17:24:01 +00:00
nvme test/nvme/reset: exit the test if no controllers avaiable 2018-08-06 23:38:48 +00:00
nvmf test/nvmf: add init and fini functions to tgt tests 2018-08-16 03:37:26 +00:00
pmem test/json: Add pmem bdev test 2018-07-05 19:09:56 +00:00
spdkcli test/spdkcli: Fix: Add missing delete_*_bdev methods 2018-07-27 16:48:02 +00:00
unit bdev: remove vbdevs and base_bdevs arrays 2018-08-17 00:11:03 +00:00
vhost test: refactor the run_test function to add detailed information 2018-08-15 17:24:01 +00:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00