Spdk/module/bdev
Shuhei Matsumoto 93a91be642 bdev/nvme: Factor out common operation of create_cb() and reset_create_qpair()
To improve readability and make the following patches easier,
factor out the common operation of bdev_nvme_create_cb() and
_bdev_nvme_reset_create_qpair() into bdev_nvme_create_qpair(),
and factor out the main operation of bdev_nvme_destroy_cb()
into bdev_nvme_destroy_qpair(). bdev_nvme_destroy_qpair() is used
in the error path of bdev_nvme_create_qpair().

Updating g_opts.io_queue_requests again is no harm and so is done
in bdev_nvme_create_qpair().

Use the term nvme_ch in bdev_nvme_create_cb() and bdev_nvme_destroy_cb()
for clarification.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ie0a4251023037958d122fbb5d7ee72d42238b3ed
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4981
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: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-11-16 12:23:04 +00:00
..
aio bdev_aio: fix interrupt mode notify error 2020-10-26 11:49:03 +00:00
compress bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
crypto bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
delay bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
error module/error: remove legacy config support 2020-10-16 08:15:26 +00:00
ftl build: remove unused references to conf library 2020-10-20 02:42:16 +00:00
gpt module/gpt: remove legacy config support 2020-10-19 09:55:43 +00:00
iscsi bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
lvol bdev/lvol: Pass bdev name instead of bdev pointer to vbdev_lvs_create 2020-10-20 08:52:29 +00:00
malloc module/malloc: remove legacy config support 2020-10-19 09:55:43 +00:00
null module/null: remove legacy config support 2020-10-19 09:55:43 +00:00
nvme bdev/nvme: Factor out common operation of create_cb() and reset_create_qpair() 2020-11-16 12:23:04 +00:00
ocf bdev/ocf: Fix metadata updater call 2020-11-06 08:11:19 +00:00
passthru module/passthru: remove legacy config support 2020-10-19 09:55:43 +00:00
pmem bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
raid bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
rbd bdev modules: remove legacy config support 2020-10-20 02:42:16 +00:00
split module/split: remove legacy config support 2020-10-19 09:55:43 +00:00
uring module/uring: remove legacy config support 2020-10-19 09:55:43 +00:00
virtio module/virtio_blk/sci: remove legacy config support 2020-10-20 02:42:16 +00:00
zone_block bdev_module: remove config_text 2020-10-21 02:25:45 +00:00
Makefile bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00