]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io()
authorChunguang Xu <brookxu@tencent.com>
Tue, 13 Apr 2021 01:39:05 +0000 (09:39 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 16 Apr 2021 20:49:37 +0000 (16:49 -0400)
commit70d251f87fad0b727e7fc909c6cf4476449487fb
treea8f31eabe83346ec7a0d3f6df999dc1fed350d7c
parentf3bf71c23f7924af53b497ed15acc6c48421004b
cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io()

If delayacct is disabled, then delayacct_is_task_waiting_on_io()
always returns false, which causes the statistical value to be
wrong. Perhaps tsk->in_iowait is better.

Signed-off-by: Chunguang Xu <brookxu@tencent.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup-v1.c