diff options
author | Shaohua Li <shli@fb.com> | 2017-09-14 14:02:04 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-26 07:41:22 -0600 |
commit | 05e3db95ebfc5c06a29a1d8c7a3e02f46f3a25a7 (patch) | |
tree | 796d817c452db9d6f64595238f28d9c7af2e1119 /kernel/dma.c | |
parent | e365806ac289457263a133bd32df8df49897f612 (diff) | |
download | talos-op-linux-05e3db95ebfc5c06a29a1d8c7a3e02f46f3a25a7.tar.gz talos-op-linux-05e3db95ebfc5c06a29a1d8c7a3e02f46f3a25a7.zip |
kthread: add a mechanism to store cgroup info
kthread usually runs jobs on behalf of other threads. The jobs should be
charged to cgroup of original threads. But the jobs run in a kthread,
where we lose the cgroup context of original threads. The patch adds a
machanism to record cgroup info of original threads in kthread context.
Later we can retrieve the cgroup info and attach the cgroup info to jobs.
Since this mechanism is only required by kthread, we store the cgroup
info in kthread data instead of generic task_struct.
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/dma.c')
0 files changed, 0 insertions, 0 deletions