Commit 63528ebc authored by Seth Howell's avatar Seth Howell Committed by Jim Harris
Browse files

bdev: Add read and write latency ticks to stats



These were left out previously.

Change-Id: I4e97068d2f13ca1dd1cfae1b25564641cee794ef
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/419601


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
parent dd9cd435
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
}