Spdk/module/bdev/nvme
Shuhei Matsumoto 7b9b1eefc0 bdev/nvme: Pass nvme_io_channel instead of spdk_io_channel as a parameter to I/O APIs
_bdev_nvme_submit_request() already has a pointer to nvme_io_channel.
Passing nvme_io_channel simply to I/O APIs will be reasonable
simplification.

Two admin APIs, bdev_nvme_abort() and bdev_nvme_admin_passthru()
get the associated thread to the spdk_io_channel and set it to
nvme_bdev_io. These APIs get spdk_io_channal from nvme_io_channel using
the container_of macro. These APIs are not performance sensitive.
Using the contaier_of macro will be better than extracting the operation
from these APIs because we can keep the changes local to these APIs.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I67985075d70551e4fe3bb84dfee15f1e4e882451
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4384
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-09-30 07:25:54 +00:00
..
bdev_nvme_cuse_rpc.c module/bdev_nvme: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
bdev_nvme_rpc.c module/bdev_rpc: modify detach_ctrlr rpc to accept trid. 2020-08-11 08:29:14 +00:00
bdev_nvme.c bdev/nvme: Pass nvme_io_channel instead of spdk_io_channel as a parameter to I/O APIs 2020-09-30 07:25:54 +00:00
bdev_nvme.h module/bdev: add a function to remove trid from ctrlr. 2020-08-07 15:06:01 +00:00
bdev_ocssd_rpc.c bdev/ocssd: fixed leaking range buffer 2019-12-23 08:43:34 +00:00
bdev_ocssd.c bdev/nvme: nvme_bdev points only nvme_bdev_ns and access nvme_bdev_ctrlr via nvme_bdev_ns 2020-09-30 07:25:54 +00:00
bdev_ocssd.h bdev/ocssd: media management events 2019-12-20 10:02:15 +00:00
common.c bdev/nvme: add a function for specifying a multipath trid. 2020-08-07 15:06:01 +00:00
common.h bdev/nvme: nvme_bdev points only nvme_bdev_ns and access nvme_bdev_ctrlr via nvme_bdev_ns 2020-09-30 07:25:54 +00:00
Makefile mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
nvme_rpc.c module/bdev_nvme: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
vbdev_opal_rpc.c nvme/opal: deprecate spdk_opal_supported() 2020-05-20 14:16:44 +00:00
vbdev_opal.c bdev_nvme/opal: remove unnecessary opal configuration 2020-07-01 07:50:59 +00:00
vbdev_opal.h module/bdev_nvme: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00