[Devel] [PATCH rh8 8/8] sched: Fix task_group "iowait_sum" statistic accounting

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 28 18:57:37 MSK 2020


Signed-off-by: Konstantin Khorenko <khorenko 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 23a2f2452474..6546d8511417 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -1053,7 +1053,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.28.0



More information about the Devel mailing list