bdev: increment io_time if queue depth > 0
This value is used to calculate the disk utilization of a given bdev. Change-Id: I4bf101c524b92bdd21573941e17f61db59c5c6b8 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/423017 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
9a1d975777
commit
b7d9caf2e6
@ -1693,6 +1693,7 @@ _calculate_measured_qd_cpl(struct spdk_io_channel_iter *i, int status)
|
||||
bdev->internal.measured_queue_depth = bdev->internal.temporary_queue_depth;
|
||||
|
||||
if (bdev->internal.measured_queue_depth) {
|
||||
bdev->internal.io_time += bdev->internal.period;
|
||||
bdev->internal.weighted_io_time += bdev->internal.period * bdev->internal.measured_queue_depth;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user