mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
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>
This commit is contained in:
parent
d95af61df0
commit
ffeee417d9
1 changed files with 1 additions and 1 deletions
|
@ -727,7 +727,7 @@ int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
|
|||
stats->nr_stopped++;
|
||||
break;
|
||||
default:
|
||||
if (delayacct_is_task_waiting_on_io(tsk))
|
||||
if (tsk->in_iowait)
|
||||
stats->nr_io_wait++;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue