projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95af61
)
cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io()
author
Chunguang Xu
<brookxu@tencent.com>
Tue, 13 Apr 2021 01:39:05 +0000
(09:39 +0800)
committer
Tejun Heo
<tj@kernel.org>
Fri, 16 Apr 2021 20:49:37 +0000
(16:49 -0400)
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
patch
|
blob
|
history
diff --git
a/kernel/cgroup/cgroup-v1.c
b/kernel/cgroup/cgroup-v1.c
index a5751784ad7401a2758456b41d6699de7be5f96b..391aa570369bba0d4726d6822eab5da2c0b5dd11 100644
(file)
--- a/
kernel/cgroup/cgroup-v1.c
+++ b/
kernel/cgroup/cgroup-v1.c
@@
-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;
}