numam-spdk/lib/bdev/error
Jim Harris 8bf4c089f6 bdev: initialize vbdev modules first
This allows vbdev modules to be ready for examine
calls for (physical) bdev modules when the latter
initialize.

This requires the following modifications to existing
bdev modules:
1) error and split now search their config sections
   at examine time (instead of init) to see if the
   bdev should be consumed by the vbdev module
2) gpt is simplified considerably - it no longer
   needs to save bdevs to examine when
   gpt initializes later
3) nvme must register its io device before registering
   the bdev, since vbdevs may immediately start trying
   to send I/O to the new nvme bdev

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

Reviewed-on: https://review.gerrithub.io/368598
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-07-12 12:42:56 -04:00
..
Makefile bdev/error: Add new bdev/error to inject errors in bdev layer. 2017-05-18 07:56:14 -07:00
vbdev_error_rpc.c bdev/error: Make the injected errors as vector. 2017-07-06 15:02:06 -04:00
vbdev_error.c bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
vbdev_error.h bdev/error: Make the injected errors as vector. 2017-07-06 15:02:06 -04:00