]> 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>
Thu, 20 Dec 2018 23:46:16 +0000 (15:46 -0800)
commitae7daae7e35adccd07e73873b384235be6460327
tree077e0956492a550fde0c2933ea245c35a88f1ef5
parent2ddd30d4a9a47003efc3ffb5edf8130691edc66c
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/rc
common/shellcheck