Spdk/module/bdev
Shuhei Matsumoto eebd35116d bdev/nvme: Remove nvme_bdev_ctrlr parameter from create/destroy_qpair()
nvme_bdev_ctrlr pointer is already cached to nvme_io_channel.
Hence let's remove it from the helper functions, bdev_nvme_create_qpair()
and bdev_nvme_destroy_qpair().

The following minor fixes are done together in this patch.

Fix the error paths of bdev_nvme_create_qpair() because
bdev_nvme_destroy_qpair() cannot be used as is in this case.

When calling bdev_ocssd_destroy_io_channel(), check if nvme_ch->ocssd_ch
is not NULL instead of spdk_nvme_ctrlr_is_ocssd_supported().

Cache nvme_bdev_ctrlr to nvme_io_channel just before calling
bdev_nvme_create_qpair() because the pointer is more associated
with qpair.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ic96b7d0fa27dd1f32d573eecdc9d4eacc5593bde
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5511
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-12-14 14:35:07 +00:00
..
aio bdev/aio: access 'spdk_bdev_io' before 'spdk_bdev_io_complete' called 2020-12-07 14:56:54 +00:00
compress lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
crypto bdev/crypto: lib/env: move minimum DPDK version to DPDK 19.11 2020-12-04 09:51:00 +00:00
delay lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
error lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
ftl lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
gpt module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
iscsi bdev_iscsi: replace master with main 2020-12-03 09:41:07 +00:00
lvol lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
malloc module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
null module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
nvme bdev/nvme: Remove nvme_bdev_ctrlr parameter from create/destroy_qpair() 2020-12-14 14:35:07 +00:00
ocf bdev_ocf: replace "master vbdev" with "main vbdev" 2020-12-03 09:41:07 +00:00
passthru lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
pmem lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
raid module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
rbd lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
split lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
uring lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
virtio bdev: virtio blk read max size and segs 2020-12-10 14:39:45 +00:00
zone_block module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
Makefile bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00