numam-spdk/lib/bdev/nvme
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
..
bdev_nvme_rpc.c RPC: Add rpc support to update firmware. 2017-10-31 12:49:31 -04:00
bdev_nvme.c bdev/nvme: simplify spdk_bdev_nvme_get_ctrlr() 2017-12-01 13:24:45 -05:00
bdev_nvme.h bdev/nvme: simplify spdk_bdev_nvme_get_ctrlr() 2017-12-01 13:24:45 -05:00
Makefile bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00