* [RESEND PATCH] cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io()
@ 2021-04-13 1:39 brookxu
[not found] ` <7fee39d482a783254379f2419a00b9a9f32d7f2e.1618275776.git.brookxu-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: brookxu @ 2021-04-13 1:39 UTC (permalink / raw)
To: tj-DgEjT+Ai2ygdnm+yROfE0A, lizefan.x-EC8Uxl6Npydl57MIdRCFDg,
hannes-druUgvl0LCNAfugRpC6u6w, cgroups-u79uwXL29TY76Z2rM5mHXA
From: Chunguang Xu <brookxu-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
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-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
---
kernel/cgroup/cgroup-v1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c
index 32596fd..91991e2 100644
--- 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;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND PATCH] cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io()
[not found] ` <7fee39d482a783254379f2419a00b9a9f32d7f2e.1618275776.git.brookxu-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
@ 2021-04-16 20:49 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2021-04-16 20:49 UTC (permalink / raw)
To: brookxu
Cc: lizefan.x-EC8Uxl6Npydl57MIdRCFDg, hannes-druUgvl0LCNAfugRpC6u6w,
cgroups-u79uwXL29TY76Z2rM5mHXA
On Tue, Apr 13, 2021 at 09:39:05AM +0800, brookxu wrote:
> From: Chunguang Xu <brookxu-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
>
> 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-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
Applied to cgroup/for-5.13.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-16 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13 1:39 [RESEND PATCH] cgroup: use tsk->in_iowait instead of delayacct_is_task_waiting_on_io() brookxu
[not found] ` <7fee39d482a783254379f2419a00b9a9f32d7f2e.1618275776.git.brookxu-1Nz4purKYjRBDgjK7y7TUQ@public.gmane.org>
2021-04-16 20:49 ` Tejun Heo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.