[Devel] [PATCH rh7 03/12] ms/mm: drop support of non-linear mapping from fault codepath

2016-10-03 Thread Andrey Ryabinin
y picked from commit 9b4bdd2ffab9557ac43af7dff02e7dab1c8c58bd) Signed-off-by: Andrey Ryabinin --- include/linux/mm.h | 16 +++- mm/memory.c| 52 +++- 2 files changed, 14 insertions(+), 54 deletions(-) diff --git a/include/linux/mm.h b/incl

[Devel] [PATCH rh7 09/12] ms/mm: fix regression in remap_file_pages() emulation

2016-10-03 Thread Andrey Ryabinin
n Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 48f7df329474b49d83d0dffec1b6186647f11976) Signed-off-by: Andrey Ryabinin --- mm/mmap.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/mm/mmap

[Devel] [PATCH rh7 12/12] ms/x86: drop _PAGE_FILE and pte_file()-related helpers

2016-10-03 Thread Andrey Ryabinin
ed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 0a191362058391878cc2a4d4ccddcd8223eb4f79) Signed-off-by: Andrey Ryabinin --- arch/x86/include/asm/pgtable-2level.h | 86 +-- arch/x86/include/asm/pgtable-3level.h | 12 --

[Devel] [PATCH rh7 08/12] ms/mm: remove rest usage of VM_NONLINEAR and pte_file()

2016-10-03 Thread Andrey Ryabinin
d from commit 0661a33611fca12570cba48d9344ce68834ee86c) Signed-off-by: Andrey Ryabinin --- include/linux/mm.h | 1 - include/linux/swapops.h | 4 +-- mm/ksm.c| 2 +- mm/madvise.c| 4 +-- mm/memcontrol.c | 7 ++--- mm/memory.c | 80 +++-

[Devel] [PATCH rh7 06/12] ms/rmap: drop support of non-linear mappings

2016-10-03 Thread Andrey Ryabinin
y picked from commit 27ba0644ea9dfe6e7693abc85837b60e40583b96) Signed-off-by: Andrey Ryabinin --- Documentation/cachetlb.txt | 8 +- fs/inode.c | 1 - include/linux/fs.h | 4 +- include/linux/mm.h | 6 -- include/linux/mm_types.h | 4 +- include/linux/rmap.h |

[Devel] [PATCH rh7] ms/coredump: fix unfreezable coredumping task

2016-10-03 Thread Andrey Ryabinin
ng task while it waits for core_state->startup completion. https://jira.sw.ru/browse/PSBM-52793 Link: http://lkml.kernel.org/r/1475225434-3753-1-git-send-email-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin Cc: sta...@vger.kernel.org Acked-by: Oleg Nesterov Acked-by: Pavel Machek

[Devel] [PATCH rh7 01/12] ms/mm: replace remap_file_pages() syscall with emulation

2016-10-03 Thread Andrey Ryabinin
: Linus Torvalds https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit c8d78c1823f46519473949d33f0d1d33fe21ea16) Signed-off-by: Andrey Ryabinin --- Documentation/vm/remap_file_pages.txt | 27 include/linux/fs.h| 8 +- mm/Makefile | 2 +- mm/fre

[Devel] [PATCH rh7 04/12] ms/mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub

2016-10-03 Thread Andrey Ryabinin
rom commit d83a08db5ba6072caa658745881f4baa9bad6a08) Signed-off-by: Andrey Ryabinin --- fs/9p/vfs_file.c | 1 - fs/btrfs/file.c| 1 - fs/ceph/addr.c | 1 - fs/cifs/file.c | 1 - fs/ext4/file.c | 1 - fs/f2fs/file.c | 1 - fs/fuse/file.c | 1 - fs/gfs2/file.c | 1 - fs/nfs/file.c

[Devel] [PATCH rh7 07/12] ms/mm: replace vma->sharead.linear with vma->shared

2016-10-03 Thread Andrey Ryabinin
: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit ac51b934f3912582d3c897c6c4d09b32ea57b2c7) Signed-off-by: Andrey Ryabinin --- include/linux/mm_types.h | 8 +++- mm/interval_tree.c | 34 +---

[Devel] [PATCH rh7 2/4] ms/kcov: don't trace the code coverage code

2016-10-14 Thread Andrey Ryabinin
ked from commit bdab42dfc974d15303afbf259f340f374a453974) Signed-off-by: Andrey Ryabinin --- kernel/kcov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kcov.c b/kernel/kcov.c index 9ea7a05..f963fca 100644 --- a/kernel/kcov.c +++ b/kernel/kcov.c @@ -44,7 +44,7 @@ struct kcov { * E

[Devel] [PATCH rh7 1/4] ms/kernel: add kcov code coverage

2016-10-14 Thread Andrey Ryabinin
asha Levin Cc: David Drysdale Cc: Ard Biesheuvel Cc: Andrey Ryabinin Cc: Kirill A. Shutemov Cc: Jiri Slaby Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry-picked from 5c9a8750a6409c63a0f01d51a9024861

[Devel] [PATCH rh7 4/4] ms/kcov: properly check if we are in an interrupt

2016-10-14 Thread Andrey Ryabinin
://lkml.kernel.org/r/1476115803-20712-1-git-send-email-andreyk...@google.com Signed-off-by: Andrey Konovalov Acked-by: Dmitry Vyukov Cc: Nicolai Stange Cc: Andrey Ryabinin Cc: Kees Cook Cc: James Morse Cc: Vegard Nossum Cc: Quentin Casasnovas Signed-off-by: Andrew Morton Signed-off-by: Andrey

[Devel] [PATCH rh7 3/4] ms/kcov: don't profile branches in kcov

2016-10-14 Thread Andrey Ryabinin
cer. Signed-off-by: Andrey Ryabinin Cc: Dmitry Vyukov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 36f05ae8bce904b4c8105363e6227a79d343bda6) Signed-off-by: Andrey Ryabinin --- kernel/kcov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel

Re: [Devel] [PATCH rh7] md: add support for dm-crypted ploops

2016-10-24 Thread Andrey Ryabinin
close to __bind/__unbind managing md->map pointer. > > https://jira.sw.ru/browse/PSBM-53386 > > Signed-off-by: Maxim Patlasov Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

Re: [Devel] [PATCH RH7] ms/x86/signal: Remove bogus user_64bit_mode() check from sigaction_compat_abi()

2016-10-27 Thread Andrey Ryabinin
go Molnar > Signed-off-by: Dmitry Safonov > > [backported from ms commit ed1e7db33c33 ("x86/signal: Remove bogus > user_64bit_mode() check from sigaction_compat_abi()")] > Signed-off-by: Dmitry Safonov > --- Acked-by: Andrey Ryabinin > arch/x86/ia32/ia32_s

Re: [Devel] [PATCHv3 RH7] ve/net/ip6tables: fix NULL ptr dereference at ip6t_unregister_table

2016-10-31 Thread Andrey Ryabinin
0f 1f 44 00 00 55 48 89 e5 41 57 41 56 49 89 fe 48 89 f7 41 55 41 54 53 <4c> > 8b 7e 20 e8 7f 5f 04 e1 4c 8d 68 58 49 89 c4 8b 00 4c 89 eb > [13991.014765] RIP [] ip6t_unregister_table+0x18/0x80 > [ip6_tables] > > Fixes: commit bff5233618d8 ("ve/net/ip6tables: fix auto

[Devel] [PATCH rh7 02/21] ms/mm: memcg: push !mm handling out to page cache charge function

2016-11-01 Thread Andrey Ryabinin
true with the current case, so just remove it. Signed-off-by: Johannes Weiner Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 284f39afeaa4ab1409b8f43b29cdea3007960ee3) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH rh7 03/21] ms/memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm()

2016-11-01 Thread Andrey Ryabinin
ra.sw.ru/browse/PSBM-51558 (cherry picked from commit 03583f1a631c0511dfd2f16e716d5b40f675de5a) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 598abfa..ca3f8a8 100644 --- a/mm/memcontrol.c

[Devel] [PATCH rh7 12/21] ms/mm: memcontrol: remove explicit OOM parameter in charge path

2016-11-01 Thread Andrey Ryabinin
/PSBM-51558 (cherry picked from commit 0029e19ebf84dcd70b226820daa7747b28d5956d) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 51 +-- 1 file changed, 13 insertions(+), 38 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[Devel] [PATCH rh7 01/21] ms/mm: memcg: inline mem_cgroup_charge_common()

2016-11-01 Thread Andrey Ryabinin
-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 1bec6b333e241a9db47d3939fb08a4e174ece02f) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 40 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/mm

[Devel] [PATCH rh7 05/21] ms/memcg: do not replicate get_mem_cgroup_from_mm in __mem_cgroup_try_charge

2016-11-01 Thread Andrey Ryabinin
ds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit b6b6cc72bc404c952968530d7df4c3a4ab82b65b) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 50 ++ 1 file changed, 6 insertions(+), 44 deletions(-) diff --git a/mm/memcont

[Devel] [PATCH rh7 08/21] ms/mm: memcontrol: rearrange charging fast path

2016-11-01 Thread Andrey Ryabinin
: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 06b078fc065fe1fe7097675c8ee416aa2ef94fb3) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff

[Devel] [PATCH rh7 06/21] ms/memcg: sanitize __mem_cgroup_try_charge() call protocol

2016-11-01 Thread Andrey Ryabinin
(). [mho...@suse.cz: add charge mm helper] Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 6d1fdc48938cd51a3964778d78f27cb26c8eb55d) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH rh7 13/21] ms/mm: memcontrol: simplify move precharge function

2016-11-01 Thread Andrey Ryabinin
n Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 9476db974d9e18885123fcebc09f4596bb922e5f) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 48 +++---

[Devel] [PATCH rh7 20/21] ms/mm: memcontrol: teach uncharge_list to deal with kmem pages

2016-11-01 Thread Andrey Ryabinin
5e8d35f849b1969b900695ae191326bfacf6bfc6) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index cb7657e..880fa5b 100644 --- a/mm/memcontrol.c +++ b/mm

[Devel] [PATCH rh7 07/21] ms/mm: memcontrol: fold mem_cgroup_do_charge()

2016-11-01 Thread Andrey Ryabinin
: Johannes Weiner Acked-by: Michal Hocko Cc: Hugh Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 6539cc053869bd32a2db731b215b7c73b11f68d3) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH rh7 11/21] ms/mm: memcontrol: retry reclaim for oom-disabled and __GFP_NOFAIL charges

2016-11-01 Thread Andrey Ryabinin
Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 9b1306192d335759a6cf2f3b404c49e811e5f953) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 8 1 file changed, 4

[Devel] [PATCH rh7 19/21] ms/mm: memcontrol: revert use of root_mem_cgroup res_counter

2016-11-01 Thread Andrey Ryabinin
e Hansen Signed-off-by: Johannes Weiner Tested-by: Dave Hansen Acked-by: Michal Hocko Acked-by: Vladimir Davydov Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit ce00a967377baadf2481521e131771adc7652856) Signed-off-by: Andrey Ryabinin ---

[Devel] [PATCH rh7 17/21] ms/mm: memcontrol: rewrite uncharge API

2016-11-01 Thread Andrey Ryabinin
r Davydov Tested-by: Jet Chen Acked-by: Michal Hocko Tested-by: Felipe Balbi Signed-off-by: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 0a31bc97c80c3fa87b32c091d9a930ac19cd0c40)

[Devel] [PATCH rh7 18/21] ms/mm: memcontrol: use page lists for uncharge batching

2016-11-01 Thread Andrey Ryabinin
commit 747db954cab64c6b7a95b121b517165f34751898) Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 12 +-- include/linux/sched.h | 6 -- kernel/fork.c | 4 - mm/memcontrol.c| 206 - mm/swap.c

[Devel] [PATCH rh7 16/21] ms/mm: memcontrol: rewrite charge API

2016-11-01 Thread Andrey Ryabinin
origuchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 00501b531c4723972aa11d6d4ebcf8d6552007c8) Signed-off-by: Andrey Ryabinin --- Documentation/cgroups/memcg_test.txt | 32 +-- include/linux/memcontrol.h |

[Devel] [PATCH rh7 09/21] ms/mm: memcontrol: reclaim at least once for __GFP_NORETRY

2016-11-01 Thread Andrey Ryabinin
Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 28c34c291e746aab1c2bfd6d6609b2e47fa0978b) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[Devel] [PATCH rh7 04/21] ms/memcg: get_mem_cgroup_from_mm()

2016-11-01 Thread Andrey Ryabinin
: Johannes Weiner Signed-off-by: Fengguang Wu Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit df381975463996178d685f6ef7d3555c5f887201) Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 12

[Devel] [PATCH rh7 15/21] ms/mm: memcontrol: remove ordering between pc->mem_cgroup and PageCgroupUsed

2016-11-01 Thread Andrey Ryabinin
c: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 9a2385eef9f28fb5260c48c45fc8fe01f1da70a6) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 9 - 1 file changed, 9 deletions(

[Devel] [PATCH rh7 21/21] ms/mm: memcontrol: only mark charged pages with PageKmemcg

2016-11-01 Thread Andrey Ryabinin
eric page allocator paths") Reported-and-tested-by: Eric Dumazet Signed-off-by: Vladimir Davydov Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit c4159a75b64c0e67caededf4d7372c1b58a5f42a) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 4 +++

[Devel] [PATCH rh7 10/21] ms/mm: huge_memory: use GFP_TRANSHUGE when charging huge pages

2016-11-01 Thread Andrey Ryabinin
ichal Hocko Cc: Hugh Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit d51d885bbb137cc8e1704e76be1846c5e0d5e8b4) Signed-off-by: Andrey Ryabinin --- mm/huge_memory.c | 6 +++--- 1

[Devel] [PATCH rh7 14/21] ms/mm: memcontrol: catch root bypass in move precharge

2016-11-01 Thread Andrey Ryabinin
Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 692e7c45d95ad1064b6911800e2cfec7fc0236db) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 9 - 1 file changed, 8 insert

Re: [Devel] [PATCH] ms/mm/slub.c: list_lock may not be held in some circumstances

2016-11-15 Thread Andrey Ryabinin
y: David Rientjes > Signed-off-by: Andrew Morton > Signed-off-by: Linus Torvalds > > [backported from ms commit 255d0884f563 ("mm/slub.c: list_lock may not > be held in some circumstances")] > Cc: Andrey Ryabinin > Signed-off-by: Dmitry Safonov > --- Ac

[Devel] [PATCH rh7] proc/modules: show loaded modules in container.

2016-11-22 Thread Andrey Ryabinin
Some scripts wants to read this file to perform some sanity checks. Loaded modules is not security sensitive information, so this shouldn't be a problem to expose this in container. Signed-off-by: Andrey Ryabinin --- kernel/module.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/k

[Devel] [PATCH rh7] mm/memcontrol/numa_migrate: split transparent huge pages before migrating

2016-11-22 Thread Andrey Ryabinin
-54455 Fixes: a2d6b96306e3 ("mm: memcontrol: add memory.numa_migrate file") Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index cdf1b48..6366cc0 100644 --- a/mm/memcontrol.

[Devel] [PATCH rh7 2/2] tcache: speedup tcaches operations on empty tcache.

2016-12-12 Thread Andrey Ryabinin
If tcache is empty we can bail out immediately from tcache_cleancache_[get_page, invalidate_page,invalidate_inode](). As a fast way of identifying empty tcache this patch adds global atomic counter of tcache nodes. https://jira.sw.ru/browse/PSBM-56475 Signed-off-by: Andrey Ryabinin --- mm

[Devel] [PATCH rh7 1/2] tcache: don't invalidate pages on unsuccessful put/inability to put

2016-12-12 Thread Andrey Ryabinin
idate_* to remove such pages from its cache. This should save us some CPU cycles during reclaim if tcache is not active or when we perform global reclaim. https://jira.sw.ru/browse/PSBM-56475 Signed-off-by: Andrey Ryabinin --- mm/tcache.c | 19 --- 1 file changed, 8 insertions(+), 11

Re: [Devel] [PATCH] kexec: reserve 256+64 = 320M for debug kernels

2016-12-13 Thread Andrey Ryabinin
On 12/12/2016 07:46 PM, Dmitry Safonov wrote: > It succeed on 256M kdumping, but fires OOM - set 320M limit. > > https://jira.sw.ru/browse/PSBM-56847 > > Cc: Andrey Ryabinin > Signed-off-by: Dmitry Safonov Acked-by: Andrey Ryabinin ___

[Devel] [PATCH rh7 v2 2/2] tcache: speedup tcaches operations on empty tcache.

2016-12-13 Thread Andrey Ryabinin
If tcache is empty we can bail out immediately from tcache_cleancache_[get_page, invalidate_page,invalidate_inode](). As a fast way of identifying empty tcache this patch adds global atomic counter of tcache nodes. https://jira.sw.ru/browse/PSBM-56475 Signed-off-by: Andrey Ryabinin --- Changes

[Devel] [PATCH rh7 v2 1/2] tcache: don't invalidate pages on unsuccessful put/inability to put

2016-12-13 Thread Andrey Ryabinin
idate_* to remove such pages from its cache. This should save us some CPU cycles during reclaim if tcache is not active or when we perform global reclaim. https://jira.sw.ru/browse/PSBM-56475 Signed-off-by: Andrey Ryabinin --- mm/tcache.c | 19 --- 1 file changed, 8 insertions(+), 11

[Devel] [PATCH rh7 v3 2/2] tcache: speedup tcaches operations on empty tcache.

2016-12-13 Thread Andrey Ryabinin
If tcache is empty we can bail out immediately from tcache_cleancache_[get_page, invalidate_page,invalidate_inode](). As a fast way of identifying empty tcache this patch adds global atomic counter of tcache nodes. https://jira.sw.ru/browse/PSBM-56475 Signed-off-by: Andrey Ryabinin --- Changes

[Devel] [PATCH rh7 v3 1/2] tcache: don't invalidate pages on unsuccessful put/inability to put

2016-12-13 Thread Andrey Ryabinin
idate_* to remove such pages from its cache. This should save us some CPU cycles during reclaim if tcache is not active or when we perform global reclaim. https://jira.sw.ru/browse/PSBM-56475 Signed-off-by: Andrey Ryabinin --- mm/tcache.c | 19 --- 1 file changed, 8 insertions(+), 11

Re: [Devel] https://bugs.openvz.org/browse/OVZ-6834 CUDA in container

2016-12-13 Thread Andrey Ryabinin
On 12/12/2016 03:58 PM, Thomas Hoberg wrote: > Hi Andrey, > > I'm very sorry to contact you directly, but I've run out of options to help > myself. > > I am trying to get CUDA programs to run inside OpenVZ containers (they > already run on Docker containers on the host) and my problem is that t

Re: [Devel] https://bugs.openvz.org/browse/OVZ-6834 CUDA in container

2016-12-13 Thread Andrey Ryabinin
On 12/13/2016 05:57 PM, Andrey Ryabinin wrote: > Access to proc directories is slightly different. We show directory in > container iff it sticky bit is set. > You can set sticky bit via chmod (it's forbidden for proc entries in OpenVZ > kernel, I dunno why), > but you c

[Devel] [PATCH rh7] ms/mm, oom: remove task_lock protecting comm printing

2016-12-19 Thread Andrey Ryabinin
kernel/cpuset.c from the upstream patch. Our kernel still needs task_lock() task lock there to protect task_cs(). Upstream switched to RCU protection thus it doesn't need task_lock() to protect task_cs()] Signed-off-by: Andrey Ryabinin --- mm/oom_kill.c | 11 +-- 1 file changed, 1 i

[Devel] [PATCH rh7] fs/fadvise: introduce FADV_DEACTIVATE flag

2016-12-22 Thread Andrey Ryabinin
FADV_DEACTIVATE advises kernel to move file pages from active to inactive list. https://jira.sw.ru/browse/PSBM-57915 Signed-off-by: Andrey Ryabinin --- include/uapi/linux/fadvise.h | 1 + mm/fadvise.c | 43 +++ 2 files changed, 44

[Devel] [PATCH rh7] pfcache/ub: account pfcache peer files in ub0

2017-01-09 Thread Andrey Ryabinin
Pfcache's peer files is a shared resource, thus it shouldn't be accounted per-container. This makes peer files to be accounted in ub0, the same way as it is in PSBM6. https://jira.sw.ru/browse/PSBM-56167 Signed-off-by: Andrey Ryabinin --- mm/memory.c | 3 +++ 1 file changed, 3

[Devel] [PATCH rh7] ms/cgroup: fix rmdir EBUSY regression in 3.11

2017-01-11 Thread Andrey Ryabinin
BM-53314 [aryabinin: s/cgroup_is_dead()/cgroup_is_removed()] Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 1c047b9..6aafc51 100644 --- a/kernel/cgroup.c +++ b/kernel/c

[Devel] [PATCH rh7 v2 01/21] ms/mm: memcg: inline mem_cgroup_charge_common()

2017-01-12 Thread Andrey Ryabinin
-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 1bec6b333e241a9db47d3939fb08a4e174ece02f) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 40 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/mm

[Devel] [PATCH rh7 v2 03/21] ms/memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm()

2017-01-12 Thread Andrey Ryabinin
ra.sw.ru/browse/PSBM-51558 (cherry picked from commit 03583f1a631c0511dfd2f16e716d5b40f675de5a) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7b2a99f..d09d55d9 100644 --- a/mm/memcontrol.c

[Devel] [PATCH rh7 v2 05/21] ms/memcg: do not replicate get_mem_cgroup_from_mm in __mem_cgroup_try_charge

2017-01-12 Thread Andrey Ryabinin
ds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit b6b6cc72bc404c952968530d7df4c3a4ab82b65b) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 50 ++ 1 file changed, 6 insertions(+), 44 deletions(-) diff --git a/mm/memcont

[Devel] [PATCH rh7 v2 02/21] ms/mm: memcg: push !mm handling out to page cache charge function

2017-01-12 Thread Andrey Ryabinin
true with the current case, so just remove it. Signed-off-by: Johannes Weiner Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 284f39afeaa4ab1409b8f43b29cdea3007960ee3) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH rh7 v2 07/21] ms/mm: memcontrol: fold mem_cgroup_do_charge()

2017-01-12 Thread Andrey Ryabinin
: Johannes Weiner Acked-by: Michal Hocko Cc: Hugh Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 6539cc053869bd32a2db731b215b7c73b11f68d3) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH rh7 v2 10/21] ms/mm: huge_memory: use GFP_TRANSHUGE when charging huge pages

2017-01-12 Thread Andrey Ryabinin
ichal Hocko Cc: Hugh Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit d51d885bbb137cc8e1704e76be1846c5e0d5e8b4) Signed-off-by: Andrey Ryabinin --- mm/huge_memory.c | 6 +++--- 1

[Devel] [PATCH rh7 v2 11/21] ms/mm: memcontrol: retry reclaim for oom-disabled and __GFP_NOFAIL charges

2017-01-12 Thread Andrey Ryabinin
Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 9b1306192d335759a6cf2f3b404c49e811e5f953) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 8 1 file changed, 4

[Devel] [PATCH rh7 v2 12/21] ms/mm: memcontrol: remove explicit OOM parameter in charge path

2017-01-12 Thread Andrey Ryabinin
/PSBM-51558 (cherry picked from commit 0029e19ebf84dcd70b226820daa7747b28d5956d) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 51 +-- 1 file changed, 13 insertions(+), 38 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[Devel] [PATCH rh7 v2 14/21] ms/mm: memcontrol: catch root bypass in move precharge

2017-01-12 Thread Andrey Ryabinin
Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 692e7c45d95ad1064b6911800e2cfec7fc0236db) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 9 - 1 file changed, 8 insert

[Devel] [PATCH rh7 v2 15/21] ms/mm: memcontrol: remove ordering between pc->mem_cgroup and PageCgroupUsed

2017-01-12 Thread Andrey Ryabinin
c: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 9a2385eef9f28fb5260c48c45fc8fe01f1da70a6) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 9 - 1 file changed, 9 deletions(

[Devel] [PATCH rh7 v2 21/21] ms/mm: memcontrol: only mark charged pages with PageKmemcg

2017-01-12 Thread Andrey Ryabinin
eric page allocator paths") Reported-and-tested-by: Eric Dumazet Signed-off-by: Vladimir Davydov Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit c4159a75b64c0e67caededf4d7372c1b58a5f42a) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 4 +++

[Devel] [PATCH rh7 v2 20/21] ms/mm: memcontrol: teach uncharge_list to deal with kmem pages

2017-01-12 Thread Andrey Ryabinin
5e8d35f849b1969b900695ae191326bfacf6bfc6) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 6c11788..0183a9c 100644 --- a/mm/memcontrol.c +++ b/mm

[Devel] [PATCH rh7 v2 18/21] ms/mm: memcontrol: use page lists for uncharge batching

2017-01-12 Thread Andrey Ryabinin
commit 747db954cab64c6b7a95b121b517165f34751898) Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 12 +-- include/linux/sched.h | 6 -- kernel/fork.c | 4 - mm/memcontrol.c| 204 - mm/swap.c

[Devel] [PATCH rh7 v2 16/21] ms/mm: memcontrol: rewrite charge API

2017-01-12 Thread Andrey Ryabinin
origuchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 00501b531c4723972aa11d6d4ebcf8d6552007c8) Signed-off-by: Andrey Ryabinin --- Documentation/cgroups/memcg_test.txt | 32 +-- include/linux/memcontrol.h |

[Devel] [PATCH rh7 v2 09/21] ms/mm: memcontrol: reclaim at least once for __GFP_NORETRY

2017-01-12 Thread Andrey Ryabinin
Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 28c34c291e746aab1c2bfd6d6609b2e47fa0978b) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[Devel] [PATCH rh7 v2 19/21] ms/mm: memcontrol: revert use of root_mem_cgroup res_counter

2017-01-12 Thread Andrey Ryabinin
e Hansen Signed-off-by: Johannes Weiner Tested-by: Dave Hansen Acked-by: Michal Hocko Acked-by: Vladimir Davydov Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit ce00a967377baadf2481521e131771adc7652856) Signed-off-by: Andrey Ryabinin ---

[Devel] [PATCH rh7 v2 17/21] ms/mm: memcontrol: rewrite uncharge API

2017-01-12 Thread Andrey Ryabinin
r Davydov Tested-by: Jet Chen Acked-by: Michal Hocko Tested-by: Felipe Balbi Signed-off-by: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 0a31bc97c80c3fa87b32c091d9a930ac19cd0c40)

[Devel] [PATCH rh7 v2 13/21] ms/mm: memcontrol: simplify move precharge function

2017-01-12 Thread Andrey Ryabinin
n Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 9476db974d9e18885123fcebc09f4596bb922e5f) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 48 +++---

[Devel] [PATCH rh7 v2 06/21] ms/memcg: sanitize __mem_cgroup_try_charge() call protocol

2017-01-12 Thread Andrey Ryabinin
(). [mho...@suse.cz: add charge mm helper] Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 6d1fdc48938cd51a3964778d78f27cb26c8eb55d) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH rh7 v2 04/21] ms/memcg: get_mem_cgroup_from_mm()

2017-01-12 Thread Andrey Ryabinin
: Johannes Weiner Signed-off-by: Fengguang Wu Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit df381975463996178d685f6ef7d3555c5f887201) Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 12

[Devel] [PATCH rh7 v2 08/21] ms/mm: memcontrol: rearrange charging fast path

2017-01-12 Thread Andrey Ryabinin
: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-51558 (cherry picked from commit 06b078fc065fe1fe7097675c8ee416aa2ef94fb3) Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff

[Devel] [PATCH rh7] ms/balloon: check the number of available pages in leak balloon

2017-01-16 Thread Andrey Ryabinin
kernel.org Signed-off-by: Konstantin Neumoin Signed-off-by: Denis V. Lunev CC: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin https://jira.sw.ru/browse/PSBM-58601 Signed-off-by: Andrey Ryabinin --- drivers/virtio/virtio_balloon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driv

[Devel] [PATCH rh7] ipv6/sit: account and don't WARN on ip_tunnel_prl structs allocation

2017-01-16 Thread Andrey Ryabinin
The size of the ip_tunnel_prl structs allocation is controllable from user-space, thus it's better to avoid spam in dmesg if allocation failed. Also add __GFP_ACCOUNT as this is a good candidate for per-memcg accounting. https://jira.sw.ru/browse/PSBM-58330 Signed-off-by: Andrey Rya

[Devel] [PATCH rh7 1/2] cgroups/ve: Introduce CFTYPE_ONLY_ON_VE_ROOT flag for control files

2017-01-18 Thread Andrey Ryabinin
This adds CFTYPE_ONLY_ON_VE_ROOT flag for control files. It will be used in later patch to create cgroup control file which will show up only on ve root cgroups. https://jira.sw.ru/browse/PSBM-33401 Signed-off-by: Andrey Ryabinin --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 59

[Devel] [PATCH rh7 2/2] cgroups: Introduce subgroups_limit control

2017-01-18 Thread Andrey Ryabinin
/PSBM-33401 Signed-off-by: Andrey Ryabinin --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 62 ++ 2 files changed, 63 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 816cbac..d99251b 100644 --- a/include/

[Devel] [PATCH rh7] mm/memcontrol: Fix mem cgroup usage statistics.

2017-01-23 Thread Andrey Ryabinin
unter") Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index dc83f4e..233f542 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4194,7 +4194,7 @@ static inline u64 mem_cgroup_us

[Devel] [PATCH rh7] mm/memcontrol: fix shmem accounting

2017-01-23 Thread Andrey Ryabinin
g") Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 420568b..df6edec 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6923,7 +6923,7 @@ static void unchar

[Devel] [PATCH rh7] cgroup/ve: don't add cgroup files on ve_root twice.

2017-02-02 Thread Andrey Ryabinin
hat we call cgroup_add_ve_root_files() only once per cgroup to avoid that problem and message in dmesg as well. https://jira.sw.ru/browse/PSBM-59693 Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup.c b/ker

[Devel] [PATCH rh7] sched_show_task: call task_ve_name() under RCU lock

2017-02-08 Thread Andrey Ryabinin
https://jira.sw.ru/browse/PSBM-60139 Signed-off-by: Andrey Ryabinin --- kernel/sched/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index cfd4bac..71eeb07 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5795,11

[Devel] [PATCH rh7] cgroup/ve: fix possible circular locking dependency

2017-02-08 Thread Andrey Ryabinin
dd them on every cgroup, but allow writing to it only in VE_ROOT cgroup. This is much more simpler and allow us to kill a lot of bogus code. https://jira.sw.ru/browse/PSBM-59122 Signed-off-by: Andrey Ryabinin --- include/linux/cgroup.h | 1 - kernel/cgroup.c| 34 ---

[Devel] [PATCH rh7] ms/memcg: make mem_cgroup_read_stat() unsigned

2017-02-16 Thread Andrey Ryabinin
o unsigned. [a...@linux-foundation.org: fix old typo while we're in there] Signed-off-by: Greg Thelen Cc: Johannes Weiner Acked-by: Michal Hocko Cc: [4.2+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-56256 Signed-off-by: Andrey Ryabinin

Re: [Devel] [PATCH vz7] mm: Revert accounting for WRITEBACK_TEMP in balance_dirty_pages

2017-03-03 Thread Andrey Ryabinin
to > per-bdi limits and counters. > > Kudos to Andrey Ryabinin for pointing out. > > https://jira.sw.ru/browse/PSBM-60701 > Signed-off-by: Maxim Patlasov Acked-by: Andrey Ryabinin > --- > mm/page-writeback.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions

Re: [Devel] [PATCH rh7] fs: add __GFP_NORETRY in alloc_fdmem

2017-03-16 Thread Andrey Ryabinin
On 03/16/2017 06:03 PM, Konstantin Khorenko wrote: > Andrey, please take a look. > > All other patches from Anatoly are applied already, except this one. > Worth to apply this one as well? > Yep, Acked-by: Andrey Ryabinin > -- > Best regards, > > Konst

[Devel] [PATCH rh7] ksm: Revert "introduce ksm_max_page_sharing per page deduplication limit"

2017-03-17 Thread Andrey Ryabinin
It's broken and probably won't be fixed soon, so revert it for now. https://jira.sw.ru/browse/PSBM-60359 Signed-off-by: Andrey Ryabinin --- mm/ksm.c | 732 ++- 1 file changed, 66 insertions(+), 666 deletions(-) diff --git a/

[Devel] [PATCH rh7] mm/zswap: fix potential deadlock in zswap_frontswap_store()

2017-03-28 Thread Andrey Ryabinin
rkfn+0x11d/0x420 [] process_one_work+0x17b/0x470 [] worker_thread+0x11b/0x400 [] kthread+0xcf/0xe0 [] ret_from_fork+0x58/0x90 ---[ end trace 892c68052e9c3d3f ]--- Also add __GFP_NOWARN as failures here is fine. https://jira.sw.ru/browse/PSBM-58279 Signed-off-by: Andrey Ryabinin --- mm/z

[Devel] [PATCH rh7] ms/mm: memcg: fix race condition between memcg teardown and swapin

2017-03-31 Thread Andrey Ryabinin
off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-62080 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 37 + 1 file changed, 37 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 95b1c0c..74faf07 100644 --- a/mm/memcontrol.c +++ b/mm

[Devel] [PATCH rh7 7/7] ms/mm/memcontrol.c: fix order calculation in try_charge()

2017-03-31 Thread Andrey Ryabinin
ifferent orders this : would be broken. Signed-off-by: Jerome Marchand Acked-by: Michal Hocko Acked-by: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-62827 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 2 +- 1 file changed, 1

[Devel] [PATCH rh7 6/7] mm/memcg: don't release memcg->css too early

2017-03-31 Thread Andrey Ryabinin
We can put css only after assigning memcg to pc->mem_cgroup: pc->mem_cgroup = memcg; https://jira.sw.ru/browse/PSBM-62827 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c

[Devel] [PATCH rh7 3/7] mm/memcg: fix kmem pages uncharging uncharge_batch()

2017-03-31 Thread Andrey Ryabinin
We don't uncharge nr_kmem pages from ->mem and ->memsw if nr_mem == 0 and nr_memsw == 0. We don't uncharge nr_kmem from ->kmem page counter. https://jira.sw.ru/browse/PSBM-62827 Fixes: fe9a4e1e4c8f ("ms/mm: memcontrol: teach uncharge_list to deal with kmem pages") S

[Devel] [PATCH rh7 2/7] mm/memcg: add missing hunk uncharge_kmem

2017-03-31 Thread Andrey Ryabinin
Commit 355ccab81bc9 (reapply of commit a60971691) missed hunk from memcg_uncharge_kmem() https://jira.sw.ru/browse/PSBM-62827 Fixes: 355ccab81bc9 ("mm: memcontrol: fix race between kmem uncharge and charge reparenting") Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 6

[Devel] [PATCH rh7 4/7] mm/memcg: make __memcg_activate_kmem() to actually activate kmem

2017-03-31 Thread Andrey Ryabinin
emcg) from __memcg_activate_kmem(); https://jira.sw.ru/browse/PSBM-62827 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 13d4205..bc72a26 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4351,6 +4351,8 @@

[Devel] [PATCH rh7 5/7] ve/memcg: enable kmem accounting for all cgroups

2017-03-31 Thread Andrey Ryabinin
vior by passing kmemaccount=0 on boot. Signed-off-by: Vladimir Davydov https://jira.sw.ru/browse/PSBM-62827 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index bc72a26..4e1dbbb

[Devel] [PATCH rh7 1/7] mm/memcg: uncharge ->memory ->memsw if try charge of ->kmem fails

2017-03-31 Thread Andrey Ryabinin
ng") Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 74faf07..e028861 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3043,9 +3043,6 @@ int memcg_charge_kmem(struct mem_cgroup *memcg, gfp_t gf

Re: [Devel] [PATCH rh7] mm/zswap: fix potential deadlock in zswap_frontswap_store()

2017-03-31 Thread Andrey Ryabinin
On 03/29/2017 03:32 PM, Konstantin Khorenko wrote: > Andrey, did you send it to mainstream as well? > > Please post a link here. > https://lkml.kernel.org/r/20170331153009.11397-1-aryabi...@virtuozzo.com Note it slightly different, after looking at this code again I decided to made small cle

[Devel] [PATCH rh7] ms/percpu: fix this_cpu_sub() subtrahend casting for unsigneds

2017-04-04 Thread Andrey Ryabinin
= __this_cpu_sub_return(ulong_counter, ui_one); CHECK(ul, ulong_counter, 1); Signed-off-by: Greg Thelen Acked-by: Tejun Heo Acked-by: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-63424 Signed-off-by: Andrey Ryabinin --- arch/x86

[Devel] [PATCH rh7] mm: fix false positive WARN on fs reenterence

2017-04-04 Thread Andrey Ryabinin
and can be reverted. Signed-off-by: Andrey Ryabinin --- mm/page_alloc.c | 3 ++- mm/slab.c | 6 -- mm/slub.c | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index afac33e..2607756 100644 --- a/mm/page_alloc.c +++ b/mm/pa

[Devel] [PATCH rh7] net/af_packet: fix kmem charge/uncharge

2017-04-05 Thread Andrey Ryabinin
After rebase to rhel7.3 memcg_[un]charge_kmem() takes number of pages instead of size in bytes. Callers in net/packet/af_packet.c were not updated, so they still pass bytes which leads to bogus -ENOMEM. https://jira.sw.ru/browse/PSBM-63654 Signed-off-by: Andrey Ryabinin --- net/packet

<    1   2   3   4   5   6   7   8   9   10   >