Skip to content

Commit 3754707

Browse files
committed
Revert "memcg: enable accounting for file lock caches"
This reverts commit 0f12156. The kernel test robot reports a sizeable performance regression for this commit, and while it clearly does the rigth thing in theory, we'll need to look at just how to avoid or minimize the performance overhead of the memcg accounting. People already have suggestions on how to do that, but it's "future work". So revert it for now. Link: https://lore.kernel.org/lkml/20210907150757.GE17617@xsang-OptiPlex-9020/ Acked-by: Jens Axboe <axboe@kernel.dk> Acked-by: Shakeel Butt <shakeelb@google.com> Acked-by: Roman Gushchin <guro@fb.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent cd1adf1 commit 3754707

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎fs/locks.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,12 +2941,10 @@ static int __init filelock_init(void)
29412941
int i;
29422942

29432943
flctx_cache = kmem_cache_create("file_lock_ctx",
2944-
sizeof(struct file_lock_context), 0,
2945-
SLAB_PANIC | SLAB_ACCOUNT, NULL);
2944+
sizeof(struct file_lock_context), 0, SLAB_PANIC, NULL);
29462945

29472946
filelock_cache = kmem_cache_create("file_lock_cache",
2948-
sizeof(struct file_lock), 0,
2949-
SLAB_PANIC | SLAB_ACCOUNT, NULL);
2947+
sizeof(struct file_lock), 0, SLAB_PANIC, NULL);
29502948

29512949
for_each_possible_cpu(i) {
29522950
struct file_lock_list_struct *fll = per_cpu_ptr(&file_lock_list, i);

0 commit comments

Comments
 (0)