Spdk/module/bdev
Shuhei Matsumoto c1b0b339cf bdev/nvme: Refactor create/destroy_ctrlr_channel_cb()
The following patches will have the following changes.

Add nvme_qpair object and move qpair and poll_group pointers and
the io_path_list list from nvme_ctrlr_channel to nvme_qpair. nvme_qpair
is allocated dynamically when creating nvme_ctrlr_channel, and
nvme_ctrlr_channel points to nvme_qpair.

qpair is disconnected asynchronously and nvme_ctrlr_channel is
deleted asynchronously.

To make the following patches simpler, refactor two functions,
bdev_nvme_create_ctrlr_channel_cb() and
bdev_nvme_destroy_ctrlr_channel_cb(). The details are as follows.

Factor out nvme_qpair_create() from bdev_nvme_create_ctrlr_channel_cb()
and factor out nvme_qpair_delete() from
bdev_nvme_destroy_ctrlr_channel_cb(). Then reorder a few operation
in these.

Additionally, reorder a operation in _bdev_nvme_add_io_path().

Change-Id: Idf0328fa77a54f40fe52ca72c3842dde82d55972
Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11831
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2022-03-15 09:05:09 +00:00
..
aio bdev/aio: Correct error message when IO fails 2022-02-22 09:03:51 +00:00
compress module/bdev/compress: print a reasonable message on create error 2022-03-08 07:50:49 +00:00
crypto bdev/crypto: Fixed g_session_mp init error handling 2022-03-08 15:07:46 +00:00
delay so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
error so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
ftl so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
gpt so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
iscsi so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
lvol so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
malloc accel: plumb accel flags through operations that need them 2022-03-04 21:56:54 +00:00
null bdev/null: call spdk_bdev_module_fini_done() even if not registered 2022-03-02 08:39:40 +00:00
nvme bdev/nvme: Refactor create/destroy_ctrlr_channel_cb() 2022-03-15 09:05:09 +00:00
ocf bdev/ocf: Improve OCF mpools 2022-03-02 08:34:39 +00:00
passthru so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
pmem so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
raid so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
rbd so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
split so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
uring so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
virtio so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
zone_block so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
Makefile bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00