numam-spdk/lib/bdev
Daniel Verkamp 474632ba7b bdev/nvme: simplify spdk_bdev_nvme_get_ctrlr()
Rather than iterating over the g_nvme_bdevs list to determine if a bdev
is an NVMe bdev, we can just compare the module pointer.

Also, the function can take a spdk_bdev pointer directly rather than
casting from a void pointer.

Change-Id: Iccf3c9b3263e9b2d67d07d037dc00d1cbc0f22a1
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/389899
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-12-01 13:24:45 -05:00
..
aio bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
error bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
gpt bdev/gpt: check against get_io_channel failure 2017-10-19 00:33:06 -04:00
lvol bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
malloc bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
null bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
nvme bdev/nvme: simplify spdk_bdev_nvme_get_ctrlr() 2017-12-01 13:24:45 -05:00
pmem bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
rbd bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
rpc bdev: add callback to spdk bdev unregister and bdev destruct 2017-10-26 17:23:58 -04:00
split bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
virtio rte_virtio: remove unused static variable 'm' 2017-11-29 18:21:15 -05:00
bdev.c bdev: handling duplicated bdev name 2017-11-28 16:20:30 -05:00
Makefile bdev_virtio: added --without-virtio configure flag 2017-10-19 19:06:12 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00