bdev: Add read and write latency ticks to stats

These were left out previously.

Change-Id: I4e97068d2f13ca1dd1cfae1b25564641cee794ef
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/419601
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
Seth Howell 2018-07-17 14:27:56 -07:00 committed by Jim Harris
parent dd9cd4352d
commit 63528ebc76

View File

@ -2273,6 +2273,8 @@ _spdk_bdev_get_each_channel_stat(struct spdk_io_channel_iter *i)
bdev_iostat_ctx->stat->num_read_ops += channel->stat.num_read_ops;
bdev_iostat_ctx->stat->bytes_written += channel->stat.bytes_written;
bdev_iostat_ctx->stat->num_write_ops += channel->stat.num_write_ops;
bdev_iostat_ctx->stat->read_latency_ticks += channel->stat.read_latency_ticks;
bdev_iostat_ctx->stat->write_latency_ticks += channel->stat.write_latency_ticks;
spdk_for_each_channel_continue(i, 0);
}