+28
−10
+3
−0
+4
−2
Loading
Add helper functions, bdev_io_stat_alloc(), bdev_io_stat_free(), and bdev_io_stat_get() for struct spdk_bdev_io_stat. Then replace a bdev_io_stat_add() call by bdev_io_stat_get() at spdk_bdev_get_device_stat() because the saved data is queried first. This is another preparation to extend I/O statistics to include error counters and module specific counters to output these via the bdev_get_iostat RPC. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I9547757421a1de1b8cb44e0f8ade4b5c2bcad4e6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15443 Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>