Spdk/test/unit/lib/bdev/nvme/bdev_nvme.c
Shuhei Matsumoto d4558c6132 bdev/nvme: Reduce conversion between spdk_bdev_io and nvme_bdev_io
We can hold bdev_io directly in nvme_bdev_ctrlr as an outstanding reset.

We can put spdk_bdev_io_from_ctx(bio) into a parameter for a few
functions because it is used only once in a function.

Passing not spdk_bdev_io but nvme_bdev_io to bdev_nvme_verify_pi_error()
remove unnecessary substitution.

This is a little more efficient and simplifies the implementation.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: If49ad9fa42abf27decf3afcd8c994f55faa3bc70
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8094
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-06-02 11:37:58 +00:00
..
.gitignore ut/bdev_nvme: Create framework and add test case to create nvme_bdev_ctrlr 2021-02-18 13:36:33 +00:00
bdev_nvme_ut.c bdev/nvme: Reduce conversion between spdk_bdev_io and nvme_bdev_io 2021-06-02 11:37:58 +00:00
Makefile ut/bdev_nvme: Create framework and add test case to create nvme_bdev_ctrlr 2021-02-18 13:36:33 +00:00