Skip to content

Commit ffeee41

Browse files
brookxu-txhtejun
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent d95af61 commit ffeee41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cgroup/cgroup-v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry)
727727
stats->nr_stopped++;
728728
break;
729729
default:
730-
if (delayacct_is_task_waiting_on_io(tsk))
730+
if (tsk->in_iowait)
731731
stats->nr_io_wait++;
732732
break;
733733
}

0 commit comments

Comments
 (0)