diff options
author | Johannes Weiner <[email protected]> | 2023-08-01 09:56:32 -0400 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-08-04 13:03:42 -0700 |
commit | fac2650276eced3c94bcdbc21d0e5be637c1e582 (patch) | |
tree | 4a757c2c16d37d5a9b5475305a2d6b51e79eb4b0 /scripts/generate_rust_analyzer.py | |
parent | 17457784004c84178798432a029ab20e14f728b1 (diff) |
selftests: cgroup: fix test_kmem_basic false positives
This test fails routinely in our prod testing environment, and I can
reproduce it locally as well.
The test allocates dcache inside a cgroup, then drops the memory limit
and checks that usage drops correspondingly. The reason it fails is
because dentries are freed with an RCU delay - a debugging sleep shows
that usage drops as expected shortly after.
Insert a 1s sleep after dropping the limit. This should be good
enough, assuming that machines running those tests are otherwise not
very busy.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Paul E. McKenney <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Roman Gushchin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions