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

2020-10-08 Thread Vasily Averin
The commit is pushed to "branch-rh7-3.10.0-1127.18.2.vz7.163.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-1127.18.2.vz7.163.35 --> commit 79a5642e9d9a6bdbb56d9e0ee990fd96b7c8625c Author: Andrey Ryabinin Date: Thu Oct 8 21:35:13 2020 +0300 mm/fi

[Devel] [PATCH RHEL7 COMMIT] ploop: kaio: Clear swapfile flag

2020-10-08 Thread Vasily Averin
The commit is pushed to "branch-rh7-3.10.0-1127.18.2.vz7.163.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-1127.18.2.vz7.163.35 --> commit 709e776b4e0d20b5d4f33b56a9a91d46b4d400ea Author: Kirill Tkhai Date: Thu Oct 8 21:35:19 2020 +0300 ploop: k

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

2020-10-08 Thread Konstantin Khorenko
The commit is pushed to "branch-rh8-4.18.0-193.6.3.vz8.4.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-193.6.3.vz8.4.12 --> commit a9f90d574027e70025b6401cc3dcb4135c645893 Author: Andrey Ryabinin Date: Thu Oct 8 19:00:23 2020 +0300 kernel/sched/

[Devel] [PATCH rh8 5/5] ve/time: rework times() syscall and /proc/[pid]/stat to handle u64 time offsets

2020-10-08 Thread Konstantin Khorenko
ve_struct.{start_time,real_start_time} are u64 now, change the code correspondingly. Drop duplicated fields start_timespec/real_start_timespec in ve_struct. Fixes: f2716576136d ("ve/time: Use ve_relative_clock in times() syscall and /proc/[pid]/stat") Signed-off-by: Konstantin Khorenko --- fs/

[Devel] [PATCH rh8 4/5] ve/time: Add comment in ve_start_container() on start time initialization

2020-10-08 Thread Konstantin Khorenko
Fixes: e931118f8139 ("ve: Add ve cgroup and ve_hook subsys") Signed-off-by: Konstantin Khorenko --- kernel/ve/ve.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c index 1688407562d4..ac2252445841 100644 --- a/kernel/ve/ve.c +++ b/kernel/ve/ve.c @@ -398,6

[Devel] [PATCH rh8 3/5] ve/time: Fix VE uptime virtualization to use u64 start_time

2020-10-08 Thread Konstantin Khorenko
From: Cyrill Gorcunov Fixes: a3c4d1d8f383 ("ve/time: Customize VE uptime") Signed-off-by: Konstantin Khorenko +++ ve: Use @real_start_timespec in uptime_proc_show uptime_proc_show uses bootbased clocks so we should use @real_start_timespec here instead. Seems was a typo while converting from

[Devel] [PATCH rh8 2/5] sched: Account task_group::start_time

2020-10-08 Thread Konstantin Khorenko
From: Kirill Tkhai Extracted from "Initial patch". Signed-off-by: Kirill Tkhai (cherry picked from vz7 commit bad04073f185d257f6a3290523ca02c095837e8b) Signed-off-by: Konstantin Khorenko Rebase to vz8 notes: * moved from struct timespec to u64 (nsec) --- kernel/sched/core.c | 4 kerne

[Devel] [PATCH rh8 1/5] ve: Virtualize sysinfo

2020-10-08 Thread Konstantin Khorenko
From: Kirill Tkhai Extracted from "Initial patch". Signed-off-by: Kirill Tkhai (cherry picked from vz7 commit e55cd51304b3271a2adaf43de9b9a5a7be34541e) Signed-off-by: Konstantin Khorenko Port to vz8 notes: * virtinfo_notifier_call (bc_fill_sysinfo()) is substituted by direct call to si_mem

[Devel] [PATCH rh8 0/5] ve/time: first patchset for times virtualization in CT

2020-10-08 Thread Konstantin Khorenko
Port several patches related to times virtualization from vz7, move from "timespec" to ktime (u64) and make it working. Signed-off-by: Konstantin Khorenko Cyrill Gorcunov (1): ve/time: Fix VE uptime virtualization to use u64 start_time Kirill Tkhai (2): ve: Virtualize sysinfo sched: Accou

[Devel] [PATCH RH7] ploop: kaio: Clear swapfile flag

2020-10-08 Thread Kirill Tkhai
This allows to call defrag on image file. https://jira.sw.ru/browse/PSBM-107743 Signed-off-by: Kirill Tkhai --- drivers/block/ploop/io_kaio.c |2 -- drivers/block/ploop/io_kaio_map.c |2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/block/ploop/io_kaio.c b/drivers/block/p

[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 Ryabinin