[Devel] [PATCH rh7 2/2] mm/vmscan: add cond_resched() to loop in shrink_slab_memcg()

2021-02-01 Thread Andrey Ryabinin
shrink_slab_memcg() may iterate for a long time without resched if we have many memcg with small amount of objects. Add cond_resched() to avoid potential softlockup. https://jira.sw.ru/browse/PSBM-125095 Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 2 ++ 1 file changed, 2 insertions

[Devel] [PATCH rh7 1/2] mm: memcg: fix memcg reclaim soft lockup

2021-02-01 Thread Andrey Ryabinin
cherry picked from commit e3336cab2579012b1e72b5265adf98e2d6e244ad) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 8 1 file changed, 8 insertions(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index 85622f235e78..080500f4e366 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2684,6 +2684,14 @@ stati

[Devel] [PATCH vz8 1/2] ve/ext4: treat panic_on_errors as remount-ro_on_errors in CTs

2021-02-01 Thread Andrey Ryabinin
an additional check - just in case someone get secondary ploop image with 'errors=panic' mount option saved in the image and mounts it from inside a CT. Signed-off-by: Andrey Ryabinin --- fs/ext4/super.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git

[Devel] [PATCH vz8 2/2] jbd2: raid amnesia protection for the journal

2021-02-01 Thread Andrey Ryabinin
;. In order to avoid such ambiguity we should pefrorm 'stabilize write'. 1) Read and rewrite latest commit id block 2) Invalidate next block in order to guarantee that journal head becomes stable. Signed-off-by: Dmitry Monakhov Signed-off-by: Andrey Ryabinin --- fs/jbd2/recovery.c | 77

[Devel] [PATCH v2 v2] fs/ovelayfs: Fix crash on overlayfs mount

2021-01-18 Thread Andrey Ryabinin
ct ovl_entry'. So move lowerpaths there and use oe->numlower as array size. Fixes: 17fc61697f73 ("overlayfs: add dynamic path resolving in mount options") Fixes: 2191d729083d ("overlayfs: add mnt_id paths options") https://jira.sw.ru/browse/PSBM-123508 Signed-off-by: A

[Devel] [PATCH vz8] fs/ovelayfs: Fix crash on overlayfs mount

2021-01-13 Thread Andrey Ryabinin
fs: add mnt_id paths options") https://jira.sw.ru/browse/PSBM-123508 Signed-off-by: Andrey Ryabinin --- fs/overlayfs/overlayfs.h | 4 ++-- fs/overlayfs/ovl_entry.h | 1 - fs/overlayfs/super.c | 30 ++ fs/overlayfs/util.c | 13 + 4 fil

[Devel] [PATCH vz8] netfilter: ipset: Fix "INFO: rcu detected stall in hash_xxx" reports

2020-12-17 Thread Andrey Ryabinin
browse/PSBM-123524 (cherry picked from commit f66ee0410b1c3481ee75e5db9b34547b4d582465) Signed-off-by: Andrey Ryabinin --- include/linux/netfilter/ipset/ip_set.h | 11 +- net/netfilter/ipset/ip_set_core.c | 34 +- net/netfilter/ipset/ip_set_hash_gen.h | 633 + 3

[Devel] [PATCH vz8] ptrace: fix task_join_group_stop() for the case when current is traced

2020-12-17 Thread Andrey Ryabinin
Link: https://lkml.kernel.org/r/20201019134237.ga18...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-123525 (cherry picked from commit 7b3c36fc4c231ca532120bbc0df67a12f09c1d96) Signed-off-by: Andrey Ryabinin --- kernel/signal.c | 19 ++- 1 file changed,

[Devel] [PATCH vz8] vdso: fix VM_BUG_ON_PAGE(PageSlab(page)) on unmap

2020-12-15 Thread Andrey Ryabinin
so_fault() need to perform get_page() on individual sub-pages and alloc_pages() doesn't initalize sub-pages. https://jira.sw.ru/browse/PSBM-123551 Signed-off-by: Andrey Ryabinin --- kernel/ve/ve.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/ve/ve.c b/

[Devel] [PATCH vz8] mm, memcg: Fix "add oom counter to memory.stat memcgroup file"

2020-12-08 Thread Andrey Ryabinin
Fix rebase of commit 3f10e0c1a0df12a2a503d0d9a3ec7b4f3ac3a467 Author: Andrey Ryabinin Date: Mon Oct 5 13:18:40 2020 +0300 mm, memcg: add oom counter to memory.stat memcgroup file https://jira.sw.ru/browse/PSBM-123537 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c

[Devel] [PATCH rh7 4.1/8] ms/mm/rmap: share the i_mmap_rwsem fix

2020-12-01 Thread Andrey Ryabinin
Use down_read_nested to avoid lockdep complain. Signed-off-by: Andrey Ryabinin --- mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/rmap.c b/mm/rmap.c index 523957450d20..90cf61e209ac 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1724,7 +1724,7 @@ static int

[Devel] [PATCH rh7 4.1/8] ms/mm/rmap: share the i_mmap_rwsem fix

2020-12-01 Thread Andrey Ryabinin
Use down_read_nested to avoid lockdep complain. Signed-off-by: Andrey Ryabinin --- mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/rmap.c b/mm/rmap.c index 523957450d20..90cf61e209ac 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1724,7 +1724,7 @@ static int

[Devel] [PATCH rh7 8/8] ms/mm/memory.c: share the i_mmap_rwsem

2020-11-30 Thread Andrey Ryabinin
Cc: Oleg Nesterov Cc: Peter Zijlstra (Intel) Cc: Rik van Riel Cc: Srikar Dronamraju Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit c8475d144abb1e62958cc5ec281d2a9e161c1946) Signed-off-by: Andre

[Devel] [PATCH rh7 7/8] ms/mm/nommu: share the i_mmap_rwsem

2020-11-30 Thread Andrey Ryabinin
wse/PSBM-122663 (cherry picked from commit 1acf2e040721564d579297646862b8ea3dd4511b) Signed-off-by: Andrey Ryabinin --- mm/nommu.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index f994621e52f0..290fe3031147 100644 --- a/mm/nommu.c +

[Devel] [PATCH rh7 5/8] ms/uprobes: share the i_mmap_rwsem

2020-11-30 Thread Andrey Ryabinin
-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit 4a23717a236b2ab31efb1651f586126789fc997f) Signed-off-by: Andrey Ryabinin --- kernel/events/uprobes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/events/uprobes.c b/kernel/events

[Devel] [PATCH rh7 6/8] ms/mm/memory-failure: share the i_mmap_rwsem

2020-11-30 Thread Andrey Ryabinin
r Zijlstra (Intel) Cc: Rik van Riel Cc: Srikar Dronamraju Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit d28eb9c861f41aa2af4cfcc5eeeddff42b13d31e) Signed-off-by: Andrey Ryabinin --- mm/memory-fai

[Devel] [PATCH rh7 1/8] ms/mm, fs: introduce helpers around the i_mmap_mutex

2020-11-30 Thread Andrey Ryabinin
kins Cc: Oleg Nesterov Acked-by: Peter Zijlstra (Intel) Cc: Srikar Dronamraju Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit 8b28f621bea6f84d44adf7e804b73aff1e09105b) Signed-off-by: Andrey Ryabi

[Devel] [PATCH rh7 4/8] ms/mm/rmap: share the i_mmap_rwsem

2020-11-30 Thread Andrey Ryabinin
Acked-by: Hugh Dickins Cc: Oleg Nesterov Acked-by: Peter Zijlstra (Intel) Cc: Srikar Dronamraju Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit 3dec0ba0be6a532cac949e02b853021bf6d57dad) Signed

[Devel] [PATCH rh7 3/8] ms/mm: convert i_mmap_mutex to rwsem

2020-11-30 Thread Andrey Ryabinin
-by: Peter Zijlstra (Intel) Cc: Srikar Dronamraju Acked-by: Mel Gorman Signed-off-by: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit c8c06efa8b552608493b7066c234cfa82c47fcea) Signed-off-by: Andre

[Devel] [PATCH rh7 2/8] ms/mm: use new helper functions around the i_mmap_mutex

2020-11-30 Thread Andrey Ryabinin
Cc: Srikar Dronamraju Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-122663 (cherry picked from commit 83cde9e8ba95d180eaefefe834958fbf7008cf39) Signed-off-by: Andrey Ryabinin --- fs/dax.c| 4 ++-- fs/hugetlbfs/inode

[Devel] [PATCH rh7] Revert "mm: Port diff-mm-vmscan-disable-fs-related-activity-for-direct-direct-reclaim"

2020-11-30 Thread Andrey Ryabinin
M-122663 Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 85622f235e78..240435eb6d84 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2653,15 +2653,9 @@ static void shrink_zone(struct zon

[Devel] [PATCH rh7] mm, page_alloc: move_freepages should not examine struct page of reserved memory

2020-11-27 Thread Andrey Ryabinin
icked from commit cd961038381f392b364a7c4a040f4576ca415b1a) [Note: we don't have commit 907ec5fca3dc, but as changelog says this could trigger before it. And we have all other symptoms - reserved page from NUMA node 1 with zeroed struct page, so page_zone() gives us wrong zone, hence BUG_ON()].

[Devel] [PATCH rh7] mm/memcg: cleanup vmpressure from mem_cgroup_css_free()

2020-11-20 Thread Andrey Ryabinin
nally there, see https://jira.sw.ru/browse/PSBM-93884 but moved in a process of rebase. https://jira.sw.ru/browse/PSBM-122653 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index e36ad59

[Devel] [PATCH rh7] mm/memcg: cleanup vmpressure from mem_cgroup_css_free()

2020-11-20 Thread Andrey Ryabinin
nally there, see https://jira.sw.ru/browse/PSBM-93884 but moved in a process of rebase. https://jira.sw.ru/browse/PSBM-122655 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index e36ad59

[Devel] [PATCH vz8 2/3] oom: resurrect berserker mode

2020-11-11 Thread Andrey Ryabinin
ot;rage" >= 0. https://jira.sw.ru/browse/PSBM-17930 Signed-off-by: Vladimir Davydov [aryabinin: vz8 rebase] Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 6 +++ include/linux/oom.h| 4 ++ mm/oom_kill.c | 97 ++

[Devel] [PATCH vz8 3/3] oom: make berserker more aggressive

2020-11-11 Thread Andrey Ryabinin
ds of tasks so that the next oom kill is likely to select an exiting task. Not triggering berserker in this case will result in oom stalls. Signed-off-by: Vladimir Davydov [aryabinin: rh8 rebase] Signed-off-by: Andrey Ryabinin --- mm/oom_kill.c | 9 + 1 file changed, 5 insertions(+), 4 del

[Devel] [PATCH vz8 1/3] proc, memcg: use memcg limits for showing oom_score inside CT

2020-11-11 Thread Andrey Ryabinin
correct behaviour. Signed-off-by: Andrey Ryabinin --- fs/proc/base.c | 8 +++- include/linux/memcontrol.h | 11 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index 85fee7396e90..cb417426dd92 100644 --- a/fs/proc/base.c +++ b

Re: [Devel] [PATCH rh8 0/3] vecalls: Implement VZCTL_GET_CPU_STAT ioctl

2020-11-10 Thread Andrey Ryabinin
c| 6 ++- > kernel/time/time.c | 1 + > kernel/ve/ve.c | 18 + > kernel/ve/vecalls.c | 66 + > 8 files changed, 109 insertions(+), 12 deletions(-) > Reviewed-by: Andrey Ryabinin __

Re: [Devel] [PATCH RH7] ploop: Fix crash in purge_lru_warn()

2020-11-10 Thread Andrey Ryabinin
-by: Kirill Tkhai Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH vz8] vdso, vclock_gettime: fix linking with old linkers

2020-11-09 Thread Andrey Ryabinin
ones does, but I did find out that visibility("hidden") attribute on 've_start_time' cures the problem. https://jira.sw.ru/browse/PSBM-121668 Signed-off-by: Andrey Ryabinin --- arch/x86/entry/vdso/vclock_gettime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[Devel] [PATCH vz8 2/2] ext4: send abort uevent on ext4 journal abort

2020-11-05 Thread Andrey Ryabinin
mitry Monakhov [aryabinin rh8 rebase] Signed-off-by: Andrey Ryabinin --- fs/ext4/ext4.h | 2 ++ fs/ext4/super.c | 10 ++ 2 files changed, 12 insertions(+) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 228492c9518f..bbdd7efc8447 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@

[Devel] [PATCH vz8 1/2] ext4: add generic uevent infrastructure

2020-11-05 Thread Andrey Ryabinin
andle this situation and inform user-space about this. *Implementation: Add uevent infrastructure similar to dm uevent FS_ACTION = {MOUNT|UMOUNT|REMOUNT|ERROR|FREEZE|UNFREEZE} FS_UUID FS_NAME FS_TYPE Signed-off-by: Dmitry Monakhov [aryabinin: add error event, rh8 rebase] Signed-off-by: A

[Devel] [PATCH vz8] x86_64, vclock_gettime: Use standart division instead of __iter_div_u64_rem()

2020-11-03 Thread Andrey Ryabinin
em() on 32-bit. https://jira.sw.ru/browse/PSBM-121856 Signed-off-by: Andrey Ryabinin --- arch/x86/entry/vdso/vclock_gettime.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/x86/entry/vdso/vclock_gettime.c b/arch/x86/entry/vdso/vclock_gettime.c inde

[Devel] [PATCH vz8 v3 1/2] x86, cpuinfo: Fix race on parallel /proc/cpuinfo read

2020-11-03 Thread Andrey Ryabinin
BM-121823 Signed-off-by: Andrey Ryabinin --- Changes since v1: - none Changes since v2: - add spinlock, use temporary ve_flags in show_cpuinfo() arch/x86/kernel/cpu/proc.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/arch/x86/kerne

[Devel] [PATCH vz8 v3 2/2] x86: don't enable cpuid faults if /proc/vz/cpuid_override unused

2020-11-03 Thread Andrey Ryabinin
ontainers. https://jira.sw.ru/browse/PSBM-121823 Signed-off-by: Andrey Ryabinin Reviewed-by: Kirill Tkhai --- Changes since v1: - git add include/linux/cpuid_override.h Changes since v2: - add review tag arch/x86/kernel/cpuid_fault.c | 21 ++--- inclu

Re: [Devel] [PATCH vz8 v2 1/2] x86, cpuinfo: Fix race on parallel /proc/cpuinfo read

2020-11-03 Thread Andrey Ryabinin
On 11/3/20 2:28 PM, Kirill Tkhai wrote: > On 02.11.2020 20:13, Andrey Ryabinin wrote: >> If several threads read /proc/cpuinfo some can see in 'flags' >> values from c->x86_capability, before __do_cpuid_fault() called >> and masks applied. Fix this by forming

[Devel] [PATCH vz8 v2 2/2] x86: don't enable cpuid faults if /proc/vz/cpuid_override unused

2020-11-02 Thread Andrey Ryabinin
ontainers. https://jira.sw.ru/browse/PSBM-121823 Signed-off-by: Andrey Ryabinin --- Changes since v1: - git add include/linux/cpuid_override.h arch/x86/kernel/cpuid_fault.c | 21 ++--- include/linux/cpuid_override.h | 30 ++ kernel/ve/ve.c

[Devel] [PATCH vz8 v2 1/2] x86, cpuinfo: Fix race on parallel /proc/cpuinfo read

2020-11-02 Thread Andrey Ryabinin
BM-121823 Signed-off-by: Andrey Ryabinin --- Changes since v1: - none arch/x86/kernel/cpu/proc.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c index 4fe1577d5e6f..4cc2951e34fb 100644 --- a/arch/x86/

[Devel] [PATCH vz8 2/2] x86: don't enable cpuid faults if /proc/vz/cpuid_override unused

2020-11-02 Thread Andrey Ryabinin
ontainers. https://jira.sw.ru/browse/PSBM-121823 Signed-off-by: Andrey Ryabinin --- arch/x86/kernel/cpuid_fault.c | 21 ++--- kernel/ve/ve.c| 5 - 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/arch/x86/kernel/cpuid_fault.c b/arch/x86/kernel/cp

[Devel] [PATCH vz8 1/2] x86, cpuinfo: Fix race on parallel /proc/cpuinfo read

2020-11-02 Thread Andrey Ryabinin
BM-121823 Signed-off-by: Andrey Ryabinin --- arch/x86/kernel/cpu/proc.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c index 4fe1577d5e6f..4cc2951e34fb 100644 --- a/arch/x86/kernel/cpu/proc.c +++ b/arc

Re: [Devel] [PATCH rh8 3/3] ve/vestat: Introduce /proc/vz/vestat

2020-10-30 Thread Andrey Ryabinin
t;) > a58fb58bff1c ("Use ve init task's css instead of opening cgroup via vfs") > > Signed-off-by: Konstantin Khorenko > --- Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

Re: [Devel] [PATCH rh8 2/3] ve/time/stat: idle time virtualization in /proc/loadavg

2020-10-30 Thread Andrey Ryabinin
4d1d8f383 ("ve/time: Customize VE uptime") > > TODO: to separate FIXME hunks from a3c4d1d8f383 ("ve/time: Customize VE > uptime") and merge them into this commit > > Signed-off-by: Konstantin Khorenko > --- Reviewed-by: Andrey Ryabinin __

Re: [Devel] [PATCH rh8 1/3] ve/sched/stat: Introduce handler for getting CT cpu statistics

2020-10-30 Thread Andrey Ryabinin
hed: Export per task_group statistics_work") > 75fc174adc36 ("sched: Port cpustat related patches") > a58fb58bff1c ("Use ve init task's css instead of opening cgroup via vfs") > > Signed-off-by: Konstantin Khorenko Reviewed-by: Andrey Ryabinin ___

Re: [Devel] [PATCH rh8 0/8] ve/proc/sched/stat: Virtualize /proc/stat in a Container

2020-10-30 Thread Andrey Ryabinin
ting > > fs/proc/stat.c | 10 + > include/linux/kernel_stat.h | 37 > include/linux/ve.h | 8 + > kernel/cgroup/cgroup.c | 6 +- > kernel/sched/core.c | 17 +- > kernel/sched/cpuacct.c | 377 +++

Re: [Devel] [PATCH rh8] sched/stat: account ctxsw per task group

2020-10-30 Thread Andrey Ryabinin
bf64adb74cd62c4deff58e181bd63d62ac) > Signed-off-by: Konstantin Khorenko > --- Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH vz8 3/3] x86: Show vcpu cpuflags in cpuinfo

2020-10-30 Thread Andrey Ryabinin
ed right before specific cpu is being prepared to show). This should be rather easy. [aryabinin: Don't see what it buys us, so I didn't try to implement it] Signed-off-by: Kirill Tkhai https://jira.sw.ru/browse/PSBM-121823 [aryabinin:vz8 rebase] Signed-off-by: Andrey Ryabinin --- arch/x

[Devel] [PATCH vz8 2/3] x86: make ARCH_[SET|GET]_CPUID friends with /proc/vz/cpuid_override

2020-10-30 Thread Andrey Ryabinin
TIF_NOCPUID to decide whether we need to enable/disable cpuid faults or not. https://jira.sw.ru/browse/PSBM-121823 Signed-off-by: Andrey Ryabinin --- arch/x86/include/asm/thread_info.h | 4 +++- arch/x86/kernel/cpuid_fault.c | 3 ++- arch/x86/kernel/process.c | 13 + arch

[Devel] [PATCH vz8 1/3] arch/x86: introduce cpuid override

2020-10-30 Thread Andrey Ryabinin
d-off-by: Vladimir Davydov Acked-by: Cyrill Gorcunov = https://jira.sw.ru/browse/PSBM-33638 Signed-off-by: Vladimir Davydov Rebase: Signed-off-by: Kirill Tkhai https://jira.sw.ru/browse/PSBM-121823 [aryabinin: vz8 reb

[Devel] [PATCH vz8] userns: associate user_struct with the user_namespace

2020-10-27 Thread Andrey Ryabinin
_namespace.") Signed-off-by: Andrey Ryabinin --- include/linux/sched/user.h | 1 + include/linux/user_namespace.h | 4 kernel/user.c | 22 +- kernel/user_namespace.c| 13 + 4 files changed, 31 insertions(+), 9 deletions(-) diff

[Devel] [PATCH vz8 2/2] ve/fs/devmnt: process mount options

2020-10-26 Thread Andrey Ryabinin
mount options, ignoring others. mFixes: bc4143b ("ve/fs/devmnt: process mount options") Found during implementation of https://jira.sw.ru/browse/PSBM-40075 Signed-off-by: Konstantin Khorenko Reviewed-by: Kirill Tkhai https://jira.sw.ru/browse/PSBM-108196 Signed-off-by: Andrey Ryabin

[Devel] [PATCH vz8 1/2] ve/devmnt: Introduce ve::devmnt list #PSBM-108196

2020-10-26 Thread Andrey Ryabinin
ebase: ktkhai@: Merged "ve: Strip unset options in ve.mount_opts" [aryabinin: vz8 rebase] https://jira.sw.ru/browse/PSBM-108196 Signed-off-by: Andrey Ryabinin --- include/linux/ve.h | 11 +++ kernel/ve/ve.c | 175 + 2 files changed, 186 inserti

[Devel] [PATCH vz8 2/4] ia32: add 32-bit vdso virtualization.

2020-10-22 Thread Andrey Ryabinin
Similarly to the 64-bit vdso, make 32-bit vdso mapping per-ve. This will allow per container modification of the linux version xin .note section of vdso and monotonic time. https://jira.sw.ru/browse/PSBM-121668 Signed-off-by: Andrey Ryabinin --- arch/x86/entry/vdso/vma.c| 4 ++-- arch/x86

[Devel] [PATCH vz8 3/4] ve: patch linux_version_code in vdso

2020-10-22 Thread Andrey Ryabinin
On the write to ve.os_release file patch the linux_version_code in the .note section of vdso. https://jira.sw.ru/browse/PSBM-121668 Signed-off-by: Andrey Ryabinin --- arch/x86/entry/vdso/vdso-note.S | 2 ++ arch/x86/entry/vdso/vdso2c.c | 1 + arch/x86/entry/vdso/vdso32/note.S | 2

[Devel] [PATCH vz8 1/4] ve, x86_64: add per-ve vdso mapping.

2020-10-22 Thread Andrey Ryabinin
Make vdso mapping per-ve. This will allow per container modification of the linux version in .note section of vdso and monotonic time. https://jira.sw.ru/browse/PSBM-121668 Signed-off-by: Andrey Ryabinin --- arch/x86/entry/vdso/vma.c| 3 ++- arch/x86/kernel/process_64.c | 2 +- include

[Devel] [PATCH vz8 4/4] ve: add per-ve CLOCK_MONOTONIC time via __vclock_getttime()

2020-10-22 Thread Andrey Ryabinin
Make possible to read virtualized container's CLOCK_MONOTONIC time via __vclock_getttime(). Record containers start time in per-ve vdso and substruct it from the host's time on clock read. https://jira.sw.ru/browse/PSBM-121668 Signed-off-by: Andrey Ryabinin --- arch/x86/

Re: [Devel] [PATCH rh8] mm/swap: activate swapped in pages on fault

2020-10-22 Thread Andrey Ryabinin
On 10/19/20 7:32 PM, Konstantin Khorenko wrote: > From: Andrey Ryabinin > > Move swapped in anon pages directly to active list. This should > help us to prevent anon thrashing. Recently swapped in pages > has more chances to stay in memory. > > https://pmc.acronis.c

Re: [Devel] [PATCH rh8] ve: Virtualize /proc/swaps to watch from inside CT

2020-10-22 Thread Andrey Ryabinin
69df36035ab6b83eb) > Signed-off-by: Konstantin Khorenko Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH rh7] ms/aio: Kill aio_rw_vect_retry()

2020-10-14 Thread Andrey Ryabinin
in LaHaise Signed-off-by: Benjamin LaHaise https://jira.sw.ru/browse/PSBM-121197 (cherry picked from commit 73a7075e3f6ec63dc359064eea6fd84f406cf2a5) Signed-off-by: Andrey Ryabinin --- drivers/staging/android/logger.c | 2 +- drivers/usb/gadget/inode.c | 6 +--

[Devel] [PATCH vz8] mm/memcg: Use per-cpu stock charges for ->kmem and ->cache counters

2020-10-13 Thread Andrey Ryabinin
Currently we use per-cpu stocks to do precharges of the ->memory and ->memsw counters. Do this for the ->kmem and ->cache as well to decrease contention on these counters as well. https://jira.sw.ru/browse/PSBM-101300 Signed-off-by: Andrey Ryabinin --- mm/memco

[Devel] [PATCH rh7] mm/memcg: optimize mem_cgroup_enough_memory()

2020-10-12 Thread Andrey Ryabinin
se/PSBM-120968 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 6587cc2ef019..e36ad592b3c7 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4721,11 +4721,7 @@ int mem_cgroup_eno

[Devel] [PATCH vz8] kernel/cgroup: remove unnecessary cgroup_mutex lock.

2020-10-09 Thread Andrey Ryabinin
l_css+0x8f/0x120 cgroup_destroy_locked+0x246/0x5e0 cgroup_rmdir+0x2f/0x2c0 kernfs_iop_rmdir+0x131/0x1b0 vfs_rmdir+0x142/0x3c0 do_rmdir+0x2b2/0x340 do_syscall_64+0xa5/0x4d0 entry_SYSCALL_64_after_hwframe+0x6a/0xdf https://jira.sw.ru/browse/PSBM-120670 Signed-off-by: Andrey Ryabin

[Devel] [PATCH vz8] memcg: Fix missing memcg->cache charges during page migration

2020-10-09 Thread Andrey Ryabinin
x167/0x580 [ext4] evict+0xd2/0x1a0 do_unlinkat+0x250/0x2e0 do_syscall_64+0x5b/0x1a0 entry_SYSCALL_64_after_hwframe+0x65/0xca https://jira.sw.ru/browse/PSBM-120653 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/memcontrol.c b

Re: [Devel] [PATCH rh7] vmscan: don't report reclaim progress if there was no progress.

2020-10-09 Thread Andrey Ryabinin
On 10/9/20 10:22 AM, Vasily Averin wrote: > Andrey, > could you please clarify, is it required for vz8 too? > vz8 don't need this. This part was removed by commit 0a0337e0d1 ("mm, oom: rework oom detection") ___ Devel mailing list Devel@openvz.org

Re: [Devel] [PATCH rh7] mm/filemap: fix potential memcg->cache charge leak

2020-10-09 Thread Andrey Ryabinin
On 10/9/20 10:14 AM, Vasily Averin wrote: > vz8 is affected too, please cherry-pick > vz7 commit 79a5642e9d9a6bdbb56d9e0ee990fd96b7c8625c > vz8 is not affected ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH rh7] mm/filemap: fix potential memcg->cache charge leak

2020-10-08 Thread Andrey Ryabinin
__add_to_page_cache_locked() after mem_cgroup_try_charge_cache() uses mem_cgroup_cancel_charge() in one of the error paths. This may lead to leaking a few memcg->cache charges. Use mem_cgroup_cancel_cache_charge() to fix this. https://jira.sw.ru/browse/PSBM-121046 Signed-off-by: Andrey Ryabi

Re: [Devel] [PATCH rh7] tun: Silence allocation failer if user asked for too big header

2020-10-06 Thread Andrey Ryabinin
On 10/6/20 11:17 AM, Konstantin Khorenko wrote: > On 10/05/2020 04:42 PM, Andrey Ryabinin wrote: >> Userspace may ask tun device to send packet with ridiculously >> big header and trigger this: >> >>  [ cut here ] >>  WARNING: CPU: 1 P

[Devel] [PATCH rh7] tun: Silence allocation failer if user asked for too big header

2020-10-05 Thread Andrey Ryabinin
.ru/browse/PSBM-103639 Signed-off-by: Andrey Ryabinin --- drivers/net/tun.c | 4 ++-- include/net/sock.h | 7 +++ net/core/sock.c| 9 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index e95a89ba48b7..c0879c6a9703 100644 --

[Devel] [PATCH rh7] vmscan: don't report reclaim progress if there was no progress.

2020-10-05 Thread Andrey Ryabinin
te in that case. https://jira.sw.ru/browse/PSBM-104900 Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 24 1 file changed, 24 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 13ae9bd1e92e..85622f235e78 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2952,26 +2

[Devel] [PATCH vz8] kernel/sched/fair: Fix 'releasing a pinned lock'

2020-10-05 Thread Andrey Ryabinin
he same. https://jira.sw.ru/browse/PSBM-120800 Signed-off-by: Andrey Ryabinin --- kernel/sched/fair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index fc87dee4fd0e..23a2f2452474 100644 --- a/kernel/sched/fair.c +++ b/kernel/sche

[Devel] [PATCH vz8] mm, memcg: add oom counter to memory.stat memcgroup file

2020-10-02 Thread Andrey Ryabinin
oom 1 total_oom 1 # echo -1 > /sys/fs/cgroup/memory/test/memory.memsw.limit_in_bytes # echo -1 > /sys/fs/cgroup/memory/test/memory.limit_in_bytes # ./vm-scalability/usemem -O 1000G # grep oom /sys/fs/cgroup/memory/memory.stat oom 1 total_oom 2 https://jira.sw.ru/browse/PSB

[Devel] [PATCH vz8 2/2] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-10-02 Thread Andrey Ryabinin
https://jira.sw.ru/browse/PSBM-106384 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index c30150b8732d..37d4df653f39 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2213,14 +2213,18 @@ s

[Devel] [PATCH vz8 1/2] mm/memcg: reclaim memory.cache.limit_in_bytes from background

2020-10-02 Thread Andrey Ryabinin
/browse/PSBM-94761 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 42 ++ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 68242a72be4d..c30150b8732d 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c

Re: [Devel] [PATCH RH8] mm/tcache: restore missing rcu_read_lock() in tcache_detach_page()

2020-10-02 Thread Andrey Ryabinin
50 >do_page_fault+0x38/0x290 >do_async_page_fault+0x5b/0xe0 >async_page_fault+0x1e/0x30 > > Let us restore rcu_read_lock(). > > https://jira.sw.ru/browse/PSBM-120802 > Signed-off-by: Evgenii Shatokhin Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH vz8 v2] kernel/sched/fair.c: Add more missing update_rq_clock() calls

2020-09-29 Thread Andrey Ryabinin
fter update. https://jira.sw.ru/browse/PSBM-108013 Reported-by: Kirill Tkhai Signed-off-by: Andrey Ryabinin --- kernel/sched/fair.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e6dc21d5fa03..fc87dee4fd0e 100644 --- a/kernel/sched/fair.c +++ b/

[Devel] [PATCH vz8] kernel/sched/fair.c: Add more missing update_rq_clock() calls

2020-09-29 Thread Andrey Ryabinin
Add update_rq_clock() for 'target_rq' to avoid WARN() coming from attach_task(). Also add update_rq_clock(env.src_rq); in load_balance() for detach_task(). https://jira.sw.ru/browse/PSBM-108013 Reported-by: Kirill Tkhai Signed-off-by: Andrey Ryabinin --- kernel/sched/fair.c | 2

Re: [Devel] [PATCH v2 vz8] kernel/sched/fair.c: Add missing update_rq_clock() calls

2020-09-29 Thread Andrey Ryabinin
On 9/29/20 11:24 AM, Kirill Tkhai wrote: > On 28.09.2020 15:03, Andrey Ryabinin wrote: >> We've got a hard lockup which seems to be caused by mgag200 >> console printk code calling to schedule_work from scheduler >> with rq->lock held: >> #5 [b79e034239a

[Devel] [PATCH v2 vz8] kernel/sched/fair.c: Add missing update_rq_clock() calls

2020-09-28 Thread Andrey Ryabinin
n load_balance() before move_task_groups() call. It seems to be another place missing this call. https://jira.sw.ru/browse/PSBM-108013 Signed-off-by: Andrey Ryabinin --- kernel/sched/fair.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c inde

[Devel] [PATCH vz8] kernel/sched/fair.c: Add missing update_rq_clock() calls

2020-09-28 Thread Andrey Ryabinin
hat we missing necessary update_rq_clock() call. Add one to cpulimit_balance_cpu_stop() to fix the warning. Also add one in load_balance() before move_task_groups() call. It seems to be another place missing this call. https://jira.sw.ru/browse/PSBM-108013 Signed-off-by: Andrey Ryabinin --- kerne

[Devel] [PATCH rh7] keys, user: fix NULL-ptr dereference in user_destroy() #PSBM-108198

2020-09-23 Thread Andrey Ryabinin
ead+0xd1/0xe0 ret_from_fork_nospec_begin+0x7/0x21 Add the necessary check to fix this. https://jira.sw.ru/browse/PSBM-108198 Fixes: 499126f3b029 ("keys, user: Fix high order allocation in user_instantiate()") Signed-off-by: Andrey Ryabinin --- security/keys/user_defined.c | 6 -- 1

[Devel] [PATCH RH7] mm, memcg: add oom counter to memory.stat memcgroup file #PSBM-107731

2020-09-22 Thread Andrey Ryabinin
oom 1 total_oom 1 # echo -1 > /sys/fs/cgroup/memory/test/memory.memsw.limit_in_bytes # echo -1 > /sys/fs/cgroup/memory/test/memory.limit_in_bytes # ./vm-scalability/usemem -O 1000G # grep oom /sys/fs/cgroup/memory/memory.stat oom 1 total_oom 2 https://jira.sw.ru/browse/PSB

[Devel] [PATCH RH7 v2 4/4] bcache: fix cache_set_flush() NULL pointer dereference on OOM #PSBM-106785

2020-09-14 Thread Andrey Ryabinin
only during an OOM condition on bcache_register. Signed-off-by: Eric Wheeler Cc: sta...@vger.kernel.org https://jira.sw.ru/browse/PSBM-106785 (cherry picked from commit f8b11260a445169989d01df75d35af0f56178f95) Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/super.c | 3 +++ 1 file chang

[Devel] [PATCH RH7 v2 3/4] bcache: unregister reboot notifier if bcache fails to unregister device #PSBM-106785

2020-09-14 Thread Andrey Ryabinin
: Jens Axboe https://jira.sw.ru/browse/PSBM-106785 (cherry picked from commit 2ecf0cdb2b437402110ab57546e02abfa68a716b) Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache

[Devel] [PATCH RH7 v2 2/4] bcache: Data corruption fix #PSBM-106785

2020-09-14 Thread Andrey Ryabinin
/jira.sw.ru/browse/PSBM-106785 (cherry picked from commit ef71ec2d92a08eb27e9d036e3d48835b6597) Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/bset.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/b

[Devel] [PATCH RH7 v2 1/4] bcache: Fix crashes of bcache used with raid1 #PSBM-106785

2020-09-14 Thread Andrey Ryabinin
27;bio_aux' to 'dirty_io' struct and initialize it along with the 'bio' in dirty_init() to fix this. https://jira.sw.ru/browse/PSBM-106785 Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/writeback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/b

[Devel] [PATCH RH7 v2 1/4] bcache: Fix crashes of bcache used with raid1 #PSBM-106785

2020-09-14 Thread Andrey Ryabinin
27;bio_aux' to 'dirty_io' struct and initialize it along with the 'bio' in dirty_init() to fix this. https://jira.sw.ru/browse/PSBM-106785 Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/writeback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/b

[Devel] [PATCH rh7 v2] keys, user: Fix high order allocation in user_instantiate() #PSBM-107794

2020-09-14 Thread Andrey Ryabinin
220 system_call_fastpath+0x25/0x2a Use kvmalloc() to avoid potential -ENOMEM due to fragmentation. https://jira.sw.ru/browse/PSBM-107794 Signed-off-by: Andrey Ryabinin --- Changes since v1: - Add #PSBM-107794 to subject security/keys/user_defined.c | 11 +++ 1 file changed, 7 insertions(+)

[Devel] [PATCH rh7] keys, user: Fix high order allocation in user_instantiate()

2020-09-14 Thread Andrey Ryabinin
220 system_call_fastpath+0x25/0x2a Use kvmalloc() to avoid potential -ENOMEM due to fragmentation. https://jira.sw.ru/browse/PSBM-107794 Signed-off-by: Andrey Ryabinin --- security/keys/user_defined.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/security/k

[Devel] [PATCH 4/4] bcache: fix cache_set_flush() NULL pointer dereference on OOM

2020-09-14 Thread Andrey Ryabinin
only during an OOM condition on bcache_register. Signed-off-by: Eric Wheeler Cc: sta...@vger.kernel.org https://jira.sw.ru/browse/PSBM-106785 (cherry picked from commit f8b11260a445169989d01df75d35af0f56178f95) Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/super.c | 3 +++ 1 file chang

[Devel] [PATCH 3/4] bcache: unregister reboot notifier if bcache fails to unregister device

2020-09-14 Thread Andrey Ryabinin
: Jens Axboe https://jira.sw.ru/browse/PSBM-106785 (cherry picked from commit 2ecf0cdb2b437402110ab57546e02abfa68a716b) Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache

[Devel] [PATCH 2/4] bcache: Data corruption fix

2020-09-14 Thread Andrey Ryabinin
/jira.sw.ru/browse/PSBM-106785 (cherry picked from commit ef71ec2d92a08eb27e9d036e3d48835b6597) Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/bset.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/b

[Devel] [PATCH 1/4] bcache: Fix crashes of bcache used with raid1

2020-09-14 Thread Andrey Ryabinin
27;bio_aux' to 'dirty_io' struct and initialize it along with the 'bio' in dirty_init() to fix this. https://jira.sw.ru/browse/PSBM-106785 Signed-off-by: Andrey Ryabinin --- drivers/md/bcache/writeback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/b

[Devel] [PATCH rh7] cgroup: add missing dput() in cgroup_unmark_ve_roots()

2020-08-28 Thread Andrey Ryabinin
er root cgroup.") Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 55713a0071ce..5f3111805eba 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -4719,6 +4719,7 @@ void cgroup_unmark_ve_roots(

[Devel] [PATCH rh7] ms/kernel/kmod: fix use-after-free of the sub_info structure

2020-08-24 Thread Andrey Ryabinin
ast store to sub_info->retval. Signed-off-by: Martin Schwidefsky Reviewed-by: Oleg Nesterov Cc: Tetsuo Handa Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-107061 (cherry-picked from commit 0baf2a4dbf75abb7c186fd6c8d55d27aaa354a29) Signed-off-by:

Re: [Devel] [PATCH RHEL v2] mm: Reduce access frequency to shrinker_rwsem during shrink_slab

2020-08-21 Thread Andrey Ryabinin
from shrinker. > > https://jira.sw.ru/browse/PSBM-99181 > > Co-authored-by: Andrey Ryabinin > Signed-off-by: Valeriy Vdovin > > Changes: > v2: Added missing 'rwsem_is_contented' check > --- Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

Re: [Devel] [PATCH RHEL7] mm: Reduce access frequency to shrinker_rwsem during shrink_slab

2020-08-20 Thread Andrey Ryabinin
On 8/20/20 11:32 AM, Valeriy Vdovin wrote: > @@ -565,14 +588,16 @@ static unsigned long shrink_slab_memcg(gfp_t gfp_mask, > int nid, >* memcg_expand_one_shrinker_map if new shrinkers >* were registred in the meanwhile. >*/ > - if (!do

[Devel] [PATCH rh7] ms/vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console

2020-08-19 Thread Andrey Ryabinin
s://jira.sw.ru/browse/PSBM-106391 (cherry-picked from commit ca4463bf8438b403596edd0ec961ca0d4fbe0220) Signed-off-by: Andrey Ryabinin --- drivers/tty/vt/vt.c | 23 ++- drivers/tty/vt/vt_ioctl.c | 12 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/drivers/tty/vt/vt.c b

Re: [Devel] [PATCH rh7 v4] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Andrey Ryabinin
On 7/30/20 6:52 PM, Evgenii Shatokhin wrote: > Hi, > > On 30.07.2020 18:02, Andrey Ryabinin wrote: >> Exceeding cache above cache.limit_in_bytes schedules high_work_func() >> which tries to reclaim 32 pages. If cache generated fast enough or it allows >> cg

[Devel] [PATCH rh7 v4] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Andrey Ryabinin
https://jira.sw.ru/browse/PSBM-106384 Signed-off-by: Andrey Ryabinin --- - Changes since v1: add bug link to changelog - Changes since v2: Fix cache_overused check (We should check if it's positive). Made this stupid bug during cleanup, patch was tested without bogus cleanup, so it

[Devel] [PATCH rh7 v3] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Andrey Ryabinin
https://jira.sw.ru/browse/PSBM-106384 Signed-off-by: Andrey Ryabinin --- Changes since v1: add bug link to changelog Changes since v2: Fix cache_overused check (We should check if it's positive). Made this stupid bug during cleanup, patch was tested without bogus cleanup, so it shoud

[Devel] [PATCH rh7 v2] mm/memcg: fix cache growth above cache.limit_in_bytes

2020-07-30 Thread Andrey Ryabinin
https://jira.sw.ru/browse/PSBM-106384 Signed-off-by: Andrey Ryabinin --- Changes since v1: add bug link to changelog mm/memcontrol.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 3cf200f506c3..e5adb0e81cbb 100644 --- a/mm/memcontrol.c

  1   2   3   4   5   6   7   8   9   10   >