Spdk/test/unit/lib/bdev
Shuhei Matsumoto 21160add26 bdev/nvme: Factor out request submit functions into a helper function
The following patches will change I/O retry to use the same io_path if
it is still available. However, bdev_nvme_submit_request() always calls
bdev_nvme_find_io_path() first. For I/O retry, if possible, we want to
skip calling bdev_nvme_find_io_path() and use nbdev_io->io_path instead.
To reuse the code as much as possible and not to touch the fast code
path, factor out request submit functions from
bdev_nvme_submit_request() into _bdev_nvme_submit_request().

While developing this patch, a bug/mismatch was found such that
bdev_io->internal.ch was different from ch of
bdev_nvme_submit_request(). Fix it together in this patch.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Id003e033ecde218d1902bca5706c772edef5d5e5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16013
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2023-01-13 00:47:04 +00:00
..
bdev_zone.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev.c bdev: add claim type 2023-01-05 23:28:32 +00:00
compress.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
crypto.c bdev/crypto: do not create mempool for session private data 2022-12-19 08:35:14 +00:00
gpt update Intel copyright notices 2022-11-10 08:28:53 +00:00
mt bdev: examine and register on app thread 2023-01-05 23:28:32 +00:00
nvme bdev/nvme: Factor out request submit functions into a helper function 2023-01-13 00:47:04 +00:00
part.c bdev: replace internal buffer pools with iobuf 2022-12-16 09:06:07 +00:00
pmem update Intel copyright notices 2022-11-10 08:28:53 +00:00
raid raid5f: io metadata support 2023-01-11 09:08:52 +00:00
scsi_nvme.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_lvol.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vbdev_zone_block.c bdev: add claim type 2023-01-05 23:28:32 +00:00
Makefile configure: rename --with-reduce --with-vbdev-compress 2022-12-08 12:55:27 +00:00