[LTP] [PATCH 06/16] API/cgroup: Change to TWARN when v2 controllers change
Luke Nowakowski-Krijger
luke.nowakowskikrijger@canonical.com
Wed Jan 19 15:44:08 CET 2022
When the v1 blkio controller is mounted it unmounts the v2 io controller
effectively bringing the amount of cgroupv2 controllers down and
triggering the tst_brk. Because this is exected behaivor it should be
changed to TWARN in case there is something funny still going on and
should be logged.
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
---
lib/tst_cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tst_cgroup.c b/lib/tst_cgroup.c
index 3d56a3364..c53b88ed2 100644
--- a/lib/tst_cgroup.c
+++ b/lib/tst_cgroup.c
@@ -677,7 +677,7 @@ static void cgroup_root_scan(const char *const mnt_type,
goto discard;
if (root->ctrl_field)
- tst_brk(TBROK, "Available V2 controllers are changing between scans?");
+ tst_res(TWARN, "Available V2 controllers are changing between scans?");
root->ver = TST_CGROUP_V2;
--
2.32.0
More information about the ltp
mailing list