]> www.infradead.org Git - users/sagi/blktests.git/commit
blktests: add cgroup2 infrastructure
authorJosef Bacik <josef@toxicpanda.com>
Wed, 5 Dec 2018 15:34:03 +0000 (10:34 -0500)
committerOmar Sandoval <osandov@fb.com>
Fri, 7 Dec 2018 19:49:57 +0000 (11:49 -0800)
commit1cd2bb0c0e88c4481b9e76f152d6b29deb88c573
tree426f12950e9dff359bd5c408b14d5ca9769d60e0
parent69a95c6f260f9f65551214a0291f82326a57f8f7
blktests: add cgroup2 infrastructure

In order to test io.latency and other cgroup related things we need some
supporting helpers to setup and tear down cgroup2.  This adds support
for checking that we can even configure cgroup2 things, set them up if
need be, and then add the cleanup stuff to the main cleanup function so
everything is always in a clean state.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
[Omar: split into separate file, fix shellcheck errors, rework
 cleanup/exit]
Signed-off-by: Omar Sandoval <osandov@fb.com>
check
common/cgroup [new file with mode: 0644]
common/shellcheck