+30
−23
+15
−0
Loading
Fctor out getting nvme_ns and qpair pointers in _bdev_nvme_submit_request() into a helper function bdev_nvme_find_io_path(). bdev_nvme_find_io_path() will be used for ocssd_bdev, and hence locate it in common.h, inline it because it is used in I/O paths. ocssd_bdev needs not spdk_nvme_ns but nvme_bdev_ns pointer in I/O paths, and bdev_nvme_find_io_path() returns nvme_bdev_ns. Besides, move inclusion of likely.h from bdev_nvme.c and bdev_ocssd.c to common.h. The next patch will apply bdev_nvme_find_io_path to ocssd_bdev. By the following patches, bdev_nvme_find_io_path() will take ANA state into consideration. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I3817c9f56606021ebea90fdfbcf0656df9faba82 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5528 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>