[Devel] [PATCH vz9 06/27] sched: Fix task_group "iowait_sum" statistic accounting
Nikita Yushchenko
nikita.yushchenko at virtuozzo.com
Wed Oct 6 11:57:24 MSK 2021
From: Konstantin Khorenko <khorenko at virtuozzo.com>
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
(cherry-picked from vz8 commit 0e0747f3318b ("sched: Fix task_group
"iowait_sum" statistic accounting"))
Signed-off-by: Nikita Yushchenko <nikita.yushchenko at 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
More information about the Devel
mailing list