From: Konstantin Khorenko <khore...@virtuozzo.com> Signed-off-by: Konstantin Khorenko <khore...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
(cherry-picked from vz8 commit 0e0747f3318b ("sched: Fix task_group "iowait_sum" statistic accounting")) Signed-off-by: Nikita Yushchenko <nikita.yushche...@virtuozzo.com> --- kernel/sched/fair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 556bd109049a..c0bf49db868d 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1051,7 +1051,8 @@ update_stats_enqueue_sleeper(struct cfs_rq *cfs_rq, struct sched_entity *se) delta >> 20); } account_scheduler_latency(tsk, delta >> 10, 0); - } + } else + __schedstat_add(se->statistics.iowait_sum, delta); } } -- 2.30.2 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel