generic/563: selectively remove the io cgroup controller
authorDarrick J. Wong <djwong@kernel.org>
Wed, 14 Apr 2021 01:04:42 +0000 (18:04 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Apr 2021 12:53:53 +0000 (20:53 +0800)
commitd57433fc99417cebd066788414e02c7662aa5219
tree113bcd02cc5a271b65cb9987778d31d8efad3f5b
parentf7a8c5c4ad1e9fc67c09f9f7ea2144ba51209783
generic/563: selectively remove the io cgroup controller

If a system configuration tool such as systemd sets up the io cgroup
controller for its own purposes, it's possible that the last line of
this test will not be able to remove the io controller from the system
configuration.  This causes the test to fail even though the inability
to tear down systemd should not be considered (in this case) a failure.

Change this test to set the "io" component of subtree control back to
whatever it was when the test started.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/563