summaryrefslogtreecommitdiff
path: root/fs/nilfs2/inode.c
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2023-08-01 09:56:32 -0400
committerAndrew Morton <akpm@linux-foundation.org>2023-08-04 13:03:42 -0700
commitfac2650276eced3c94bcdbc21d0e5be637c1e582 (patch)
tree4a757c2c16d37d5a9b5475305a2d6b51e79eb4b0 /fs/nilfs2/inode.c
parent17457784004c84178798432a029ab20e14f728b1 (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/20230801135632.1768830-1-hannes@cmpxchg.org Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Paul E. McKenney <paulmck@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Roman Gushchin <roman.gushchin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/inode.c')
0 files changed, 0 insertions, 0 deletions