Added io_outstanding in struct nvme_io_path to record outstanding I/O number in each path, which will be used by multipath to select I/O path. io_outstanding gets updated for I/O sent to a namespace and not get updated if sent to a controller. For FLUSH case, it calls bdev_nvme_io_complete() directly and io_outstanding is not updated for this case. spdk_bdev_io_get_buf() is executed in the generic bdev layer. Hence, we do not update io_outstanding for spdk_bdev_io_get_buf(). Change-Id: I47b515e0f254e5daa7e1e88799a832032b23ff34 Signed-off-by: Richael Zhuang <richael.zhuang@arm.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15032 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> |
||
---|---|---|
.. | ||
bdev_nvme_ut.c | ||
Makefile |