fio: work with cgroup2 as well
authorJosef Bacik <josef@toxicpanda.com>
Fri, 29 Jun 2018 13:33:34 +0000 (09:33 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Jun 2018 13:50:34 +0000 (07:50 -0600)
commitc3dc516ad75eb7a1596def3473cdc3882a55d166
tree3f729064334dbccaa7fc93383c598546ec30ea91
parent9caaf02b06deecf0b0a13c16b6d59dddc64b8c35
fio: work with cgroup2 as well

The current code only works with cgroupv1, but as long as you don't want
to set blkio.weight or anything we can use the 'cgroup=' setting with
cgroupv2 easily with cgroupv1, we just need to write the thread pids to
a different file for cgroup2.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
cgroup.c
cgroup.h