Commit be6df5f1 authored by Binder Makin's avatar Binder Makin Committed by yanhaitao
Browse files

cgroups: Resource controller for open files

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8ND8I

--------------------------------

Add a lockless resource controller for limiting the number of open
file handles.  This allows us to catch misbehaving processes
and return EMFILE instead of ENOMEM for kernel memory limits.

Original link: https://lwn.net/Articles/604129/.After introduced
https://gitlab.indel.ch/thirdparty/linux-indel/commit


/5b1efc02.
All memory accounting and limiting has been switched over to the
lockless page counters. So we convert original resource counters to
lockless page counters.

Signed-off-by: default avatarBinder Makin <merimus@google.com>

Conflicts:
Merge OLK-5.10 fix patch: e2b24a5a
Merge OLK-5.10 fix patch: 7e485fec
Merge OLK-5.10 fix patch: a466f5dd
Merge OLK-5.10 fix patch: 338fc539
Merge OLK-5.10 fix patch: 1951d562
Merge OLK-5.10 fix patch: 0b732977

[Ridong: remove #ifdefs at the call sites and drop EXPORT_SYMBOL]
Signed-off-by: default avatarChen Ridong <chenridong@huawei.com>
parent a707c289
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment