numam-spdk/lib/bdev
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
..
aio bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
error bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
gpt bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
malloc bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
null bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
nvme bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
rbd bdev: add pointer to module structure 2017-07-12 12:42:56 -04:00
rpc jsonrpc: modify API to pass request to handler 2017-07-06 13:48:12 -04:00
split bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
bdev.c bdev: initialize vbdev modules first 2017-07-12 12:42:56 -04:00
Makefile GPT: add GPT bdev support 2017-07-06 13:44:37 -04:00
scsi_nvme.c bdev: add API to translate to SCSI status 2017-05-04 09:11:42 -07:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00