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

2020-07-30 Thread Andrey Ryabinin
-by: Andrey Ryabinin --- 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 +++ b/mm/memcontrol.c @@ -3080,12 +3080,16 @@ static void reclaim_high(struct mem_cgroup

[Devel] [PATCH vz8] ve, coredump: Fix usercopy warning.

2020-07-24 Thread Andrey Ryabinin
://jira.sw.ru/browse/PSBM-106216 Signed-off-by: Andrey Ryabinin --- kernel/ve/ve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c index befc5163cfe6..1688407562d4 100644 --- a/kernel/ve/ve.c +++ b/kernel/ve/ve.c @@ -1016,7 +1016,7 @@ EXPORT_SYMBOL_GPL

[Devel] [PATCH vz8 v2] ve/printk: Fix printk virtualization

2020-07-24 Thread Andrey Ryabinin
virtualization to fix this. https://jira.sw.ru/browse/PSBM-17899 https://jira.sw.ru/browse/PSBM-105442 Fixes: 7c0dae2429 ("ve/printk: printk virtualization") Signed-off-by: Andrey Ryabinin --- Changes since v1: - rebase on new branch kernel/printk/pri

Re: [Devel] [PATCH RH7] memcg/kmem: don't show fake charge in usage and limits

2020-07-23 Thread Andrey Ryabinin
gt; > Let's also remove one page when showing kmem usage and max usage, to > maintain consistency between limits and usage. > > https://jira.sw.ru/browse/PSBM-106065 > > Co-Developed-by: Andrey Ryabinin > Signed-off-by: Pavel Tikhomirov > --- Reviewed-by: Andrey Ryabini

[Devel] [PATCH vz8] ve/printk: Fix printk virtualization

2020-07-20 Thread Andrey Ryabinin
virtualization to fix this. https://jira.sw.ru/browse/PSBM-17899 https://jira.sw.ru/browse/PSBM-105442 Fixes: 7c0dae2429 ("ve/printk: printk virtualization") Signed-off-by: Andrey Ryabinin --- kernel/printk/printk.c | 99 -- 1 file changed, 66

Re: [Devel] [PATCH RH7 v2] netfilter: drop/reaquire nfnl_lock on request_module() in nft_log module

2020-07-17 Thread Andrey Ryabinin
s impossible, it's fixed as a side effect > by: f102d66b335a4 ("netfilter: nf_tables: use dedicated mutex to guard > transactions"), but backporting it is quite heavy, > > so let's just drop/reacquire nfnl lock around request_module() like it's > done in similar places. > > https://jira.sw.ru/browse/PSBM-105534 > > 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 RH7] netfilter: drop/reaquire nfnl_lock on request_module() in nft_log module

2020-07-17 Thread Andrey Ryabinin
On 7/16/20 8:21 PM, Konstantin Khorenko wrote: > If nc->call_batch() == nf_tables_newrule(), it means > nc == nf_tables_cb[NFT_MSG_NEWRULE] > > nc == >cb[cb_id] > => ss == nf_tables_subsys > > and we know that nf_tables_subsys.subsys_id = NFNL_SUBSYS_NFTABLES > > > static const struct

Re: [Devel] [PATCH RH7] netfilter: drop/reaquire nfnl_lock on request_module() in nft_log module

2020-07-17 Thread Andrey Ryabinin
On 7/16/20 3:37 PM, Konstantin Khorenko wrote: > +static int nf_logger_find_get_lock(int pf, enum nf_log_type type) > +{ > + struct nf_logger *logger; > + int ret = 0; > + > + logger = loggers[pf][type]; > + if (logger == NULL) { > +

Re: [Devel] [PATCH RH7] netfilter: drop/reaquire nfnl_lock on request_module() in nft_log module

2020-07-16 Thread Andrey Ryabinin
On 7/16/20 3:37 PM, Konstantin Khorenko wrote: > > +extern struct nf_logger __rcu *loggers[NFPROTO_NUMPROTO][NF_LOG_TYPE_MAX] > __read_mostly; > + > +/* > + * In "nft_log" module we need to drop nfnl lock while performing > + * request_module(), calls to nf_logger_find_get() in other > + *

[Devel] [PATCH rh7] mm/memcg: fix css_tryget(), css_put() imbalance

2020-07-15 Thread Andrey Ryabinin
fying 'position' on each retry. https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 34c9c4745594..d989111f8d18 100644 --- a/mm/memcontrol.c +++ b/

[Devel] [PATCH rh7 2/7] asm-generic/tlb: Track freeing of page-table directories in struct mmu_gather

2020-07-13 Thread Andrey Ryabinin
22a61c3c4f1379ef8b0ce0d5cb78baf3178950e2) Signed-off-by: Andrey Ryabinin --- include/asm-generic/tlb.h | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index 9b1e2af99ddf..bb8fd22ec20b 100644 --- a/include/asm-generic

[Devel] [PATCH rh7 5/7] mm: per-thread vma caching

2020-07-13 Thread Andrey Ryabinin
615d6e8756c87149f2d4c1b93d471bca002bd849) Signed-off-by: Andrey Ryabinin --- arch/unicore32/include/asm/mmu_context.h | 4 +- fs/exec.c| 3 + fs/proc/task_mmu.c | 1 + include/linux/mm_types.h | 4 +- include/linux/sched.h

[Devel] [PATCH rh7 6/7] mm: Add and use batched version of __tlb_remove_table()

2020-07-13 Thread Andrey Ryabinin
nce instead of decrementing one by one for each page individually. https://jira.sw.ru/browse/PSBM-101300 Signed-off-by: Andrey Ryabinin --- arch/x86/include/asm/tlb.h | 5 + include/linux/swap.h | 1 + mm/memory.c| 4 +--- mm/swap_state.c| 16 ++--

[Devel] [PATCH rh7 4/7] asm-generic/tlb: avoid potential double flush

2020-07-13 Thread Andrey Ryabinin
-by: Aneesh Kumar K.V Reported-by: "Aneesh Kumar K.V" Cc: Michael Ellerman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-101300 (cherry picked from commit 0758cd8304942292e95a0f750c374533db378b32) Signed-off-by: Andrey Ryabinin --- mm/memory.c

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

2020-07-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 1/7] mm: only drain per-cpu pagevecs once per pagevec usage

2020-07-13 Thread Andrey Ryabinin
-off-by: Andrey Ryabinin --- include/linux/pagevec.h | 4 +++- mm/swap.c | 5 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 3c6b8b1e945b..e64e6f35c8e7 100644 --- a/include/linux/pagevec.h +++ b/include

[Devel] [PATCH rh7 3/7] asm-generic/tlb: Track which levels of the page tables have been cleared

2020-07-13 Thread Andrey Ryabinin
granule required for invalidation. Acked-by: Peter Zijlstra (Intel) Acked-by: Nicholas Piggin Signed-off-by: Will Deacon https://jira.sw.ru/browse/PSBM-101300 (cherry picked from commit a6d60245d6d9b1caf66b0d94419988c4836980af) Signed-off-by: Andrey Ryabinin --- include/asm-generic/tlb.h | 41

[Devel] [PATCH vz8] fs/kernfs: remove bogus kernfs_test_ve() check

2020-07-13 Thread Andrey Ryabinin
s instead of fail as before. Which is totally fine IMO, as we reuse the existing CT's sysfs superblock instead of creating a new one. https://jira.sw.ru/browse/PSBM-104902 Signed-off-by: Andrey Ryabinin --- fs/kernfs/kernfs-ve.h | 9 - fs/kernfs/mount.c | 3 --- fs/kernfs/ve.c

Re: [Devel] [PATCH RH7 2/2] memcg, bc/vm_pages.c: drop accidental duplicated counter read

2020-07-10 Thread Andrey Ryabinin
Konstantin Khorenko Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

Re: [Devel] [PATCH RH7 1/2] memcg, bc/vm_pages.c: allow Container to report lot of total RAM/SWAP

2020-07-10 Thread Andrey Ryabinin
mption has been broken recently, so resurrect the original > behavior. > > Fixes: 770906b27920d ("memcg, bc/vm_pages.c: account some swapped memory > as used in CT in /proc/meminfo") > > https://jira.sw.ru/browse/PSBM-105529 > > Signed-off-by: Konstan

[Devel] [PATCH rh7] mm, page_alloc: drop should_suppress_show_mem

2020-06-15 Thread Andrey Ryabinin
s Torvalds (cherry picked from commit 2c029a1ea3aac296cd5b47584a579defcc4b4aa0) Signed-off-by: Andrey Ryabinin --- mm/page_alloc.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e6ee98b28808..8fe9b18fef7d 10064

[Devel] [PATCH] kernel/cgroup: Fix cgroups leaking

2020-06-08 Thread Andrey Ryabinin
children") Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index fc3148d37610..9fdba793d4f3 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -4249,13 +4249,9 @@ static

[Devel] [PATCH vz7] cgroup: Enable css_stacks debuging by default

2020-06-02 Thread Andrey Ryabinin
It's much more lightweight than the previous version, could be on by default. Replace css_stacks boot option with no_css_stacks to allow disabling the default Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel

Re: [Devel] [PATCH VZ8] kernfs/ve: ignore kernfs 've_perms_map' in cgroups.

2020-06-01 Thread Andrey Ryabinin
/jira.sw.ru/browse/PSBM-104455 > Signed-off-by: Valeriy.Vdovin Reviewed-by: Andrey Ryabinin ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH] ms/memcg: remove tasks/children test from mem_cgroup_force_empty()

2020-05-28 Thread Andrey Ryabinin
ll online, so mem_cgroup_reparent_charges() hangs because it doesn't know about fake charge. Another solution would be teaching it about fake charge, but this on seems better.] (cherry picked from commit f61c42a7d9119a8b72b9607ba8e3a34111f81d8c) Signed-off-by: Andrey Ryabinin --- Documentation/cgroups/memory.txt |

[Devel] [PATCH vz8] ve/kernfs: fix lookup for kernfs superblock

2020-05-27 Thread Andrey Ryabinin
off-by: Konstantin Khorenko [VvS RHEL7.8 rebase] context changes Signed-off-by: Andrey Ryabinin --- fs/kernfs/mount.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/kernfs/mount.c b/fs/kernfs/mount.c index f1c2335b8534..f339a037f90e 100644 --- a/fs/kernfs/mount.c +++ b/fs/kernfs/moun

[Devel] [PATCH rh7] beancounter, memcg: inline some functions for easier debuging

2020-05-19 Thread Andrey Ryabinin
To make the ouptput of memcg_css_release_check_kmem() easier to read after css_stacks rework (patch "cgroup, memcg: Rework css_stacks debugging") inline some functions so we better see where from css_get()/put() gets called. https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andre

[Devel] [PATCH v2 v2 2/2] cgroup, memcg: Rework css_stacks debugging.

2020-05-19 Thread Andrey Ryabinin
] mem_cgroup_css_offline+0x264/0x2a0 1, [b97369e0] cgroup_offline_fn+0x170/0x1a0 1, [b9713c78] __ub_set_css+0xa8/0xe0 https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andrey Ryabinin --- Changes since v1: Fix some race in __save_css_stack() include/linux/cgroup.h | 22

[Devel] [PATCH v2 v2 1/2] kernel, cgroup: Add abilty to enable css_stacks debuging via kernel command line

2020-05-19 Thread Andrey Ryabinin
Add "css_stacks" parameter to kernel's command line to enable css_stacks debug at boot. https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 17

[Devel] [PATCH 2/2] cgroup, memcg: Rework css_stacks debugging.

2020-05-18 Thread Andrey Ryabinin
] mem_cgroup_css_offline+0x264/0x2a0 1, [b97369e0] cgroup_offline_fn+0x170/0x1a0 1, [b9713c78] __ub_set_css+0xa8/0xe0 https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andrey Ryabinin --- include/linux/cgroup.h | 22 ++ kernel/cgroup.c| 37

[Devel] [PATCH 1/2] kernel, cgroup: Add abilty to enable css_stacks debuging via kernel command line

2020-05-18 Thread Andrey Ryabinin
Add "css_stacks" parameter to kernel's command line to enable css_stacks debug at boot. https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andrey Ryabinin --- kernel/cgroup.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 17

[Devel] [PATCH] cgroup: make sure a parent css isn't offlined before its children

2020-05-15 Thread Andrey Ryabinin
/cakb58ikdkzc8ret31wbkd99+hxnzjk4+fbmhkgs+nvrc9vj...@mail.gmail.com Cc: Heiko Carstens Cc: Peter Zijlstra Cc: sta...@vger.kernel.org https://jira.sw.ru/browse/PSBM-104029 (cherry picked from commit aa226ff4a1ce79f229c6b7a4c0a14e17fececd01) [aryabinin: User refcounts instead of atomics] Signed-off-by: Andrey

[Devel] [PATCH rh7] mm/memcg: Fix race on mem cgroup offline/kmem deactivation.

2020-05-08 Thread Andrey Ryabinin
kmem != 0 } Fix this by making a fake kmem charge on cgroup creation, and uncharging it back during the offline stage. This way we guarantee that kmem is never 0 while cgroup is online, so the race above isn't possible anymore. https://jira.sw.ru/browse/PSBM-98148 Signed-off-by: Andrey Ryabinin

[Devel] [PATCH vz8 4/4] Revert "ve/bc: add proc beancounter directory for each ve"

2020-04-28 Thread Andrey Ryabinin
This reverts commit 5078062e9bc7e7b6f5be0d5e45f1cc5638dfdc53. Remove /proc/bc// directory as its empty. https://jira.sw.ru/browse/PSBM-80807 Signed-off-by: Andrey Ryabinin --- include/linux/ve.h| 3 --- kernel/ve/Makefile| 2 -- kernel/ve/bc/Makefile | 7 --- kernel/ve/bc/proc.c

[Devel] [PATCH vz8 2/4] Revert "ve/bc/resources: get number of processes from pids cgroup"

2020-04-28 Thread Andrey Ryabinin
This reverts commit 2c5a80f15cb83b48d7193f862a50da215203e134. This needed only for /proc/bc/resources which is going to be elimented. https://jira.sw.ru/browse/PSBM-80807 Signed-off-by: Andrey Ryabinin --- kernel/cgroup/pids.c | 33 - kernel/ve/bc

[Devel] [PATCH vz8 3/4] Revert "ve/bc: added proc beancounter "resources" interface"

2020-04-28 Thread Andrey Ryabinin
This reverts commit 66d346ff5c3f700969d759cc9e1d1eadf5eab83d. We don't really need this stuff as this just mimics different cgroups. https://jira.sw.ru/browse/PSBM-80807 Signed-off-by: Andrey Ryabinin --- include/linux/ve.h | 5 - include/uapi/linux/beancounter.h | 66

[Devel] [PATCH vz8 1/4] Revert "ve/bc/resources: get kmem usage from mem cgroup"

2020-04-28 Thread Andrey Ryabinin
This reverts commit aa72673d7f96b3e3d0ad156c8578b36a1303a335. This needed only for /proc/bc/resources which is going to be elimented. https://jira.sw.ru/browse/PSBM-80807 Signed-off-by: Andrey Ryabinin --- kernel/ve/bc/resources.c | 2 -- mm/memcontrol.c | 25

[Devel] [PATCH vz8] mm/gup: Mark lock taken only after a successful retake

2020-04-27 Thread Andrey Ryabinin
react to fatal signals") Reported-by: syzbot+a8c70b7f3579fc058...@syzkaller.appspotmail.com Signed-off-by: Peter Xu Signed-off-by: Linus Torvalds (cherry picked from commit c7b6a566b98524baea6a244186e665d22b633545) Signed-off-by: Andrey Ryabinin --- mm/gup.c | 2 +- 1 file changed, 1 inser

[Devel] [PATCH rh7] fs/locks: Remove legacy UB_NUMFLOCKS

2020-04-24 Thread Andrey Ryabinin
-by: Andrey Ryabinin --- fs/fuse/kio/pcs/pcs_auth.c | 2 +- fs/locks.c | 73 -- fs/nfsd/nfs4layouts.c | 2 +- fs/nfsd/nfs4state.c| 8 ++--- include/bc/misc.h | 10 -- include/linux/fs.h | 6 +--- kernel/bc/misc.c

[Devel] [PATCH vz8 30/42] userfaultfd: wp: drop _PAGE_UFFD_WP properly when fork

2020-04-16 Thread Andrey Ryabinin
ra.sw.ru/browse/PSBM-102938 (cherry picked from commit b569a1760782f3da03ff718d61f74163dea599ff) Signed-off-by: Andrey Ryabinin --- mm/huge_memory.c | 8 mm/memory.c | 8 2 files changed, 16 insertions(+) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index be580b411a6a.

[Devel] [PATCH vz8 34/42] userfaultfd: wp: support write protection for userfault vma range

2020-04-16 Thread Andrey Ryabinin
kernel.org/r/20200220163112.11409-13-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit ffd05793963a44bd119311df3c02b191982574ee) Signed-off-by: Andrey Ryabinin --- include/linux/userfaultfd_k.h | 3 ++ mm/userfaultfd.c

[Devel] [PATCH vz8 22/42] userfaultfd: wp: add helper for writeprotect check

2020-04-16 Thread Andrey Ryabinin
nus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 1df319e0b4dee11436fe2ab1a0d536d3fad7cfef) Signed-off-by: Andrey Ryabinin --- include/linux/userfaultfd_k.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/userfaultfd_k.h b/include/

[Devel] [PATCH vz8 41/42] userfaultfd: selftests: refactor statistics

2020-04-16 Thread Andrey Ryabinin
..@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 5c8aed6c1b95c3c6de68bd2814611d5d54da5057) Signed-off-by: Andrey Ryabinin --- tools/testing/selftests/vm/userfaultfd.c | 76 +++- 1 file changed, 49 insertions(+), 2

[Devel] [PATCH vz8 03/42] userfaultfd_release: always remove uffd flags and clear vm_userfaultfd_ctx

2020-04-16 Thread Andrey Ryabinin
hal Hocko Cc: Tetsuo Handa Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 46d0b24c5ee10a15dfb25e20642f5a5ed59c5003) Signed-off-by: Andrey Ryabinin --- fs/userfaultfd.c | 25 + 1 file changed,

[Devel] [PATCH vz8 17/42] mm: allow VM_FAULT_RETRY for multiple times

2020-04-16 Thread Andrey Ryabinin
d-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 4064b982706375025628094e51d11cf1a958a5d3) Signed-off-by: Andrey Ryabinin --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c | 1 - arch/arm/mm/fault.c | 3 --- arch

[Devel] [PATCH vz8 26/42] userfaultfd: wp: add UFFDIO_COPY_MODE_WP

2020-04-16 Thread Andrey Ryabinin
SBM-102938 (cherry picked from commit 72981e0e7b609c741d7764cc920c8fec00920bd5) Signed-off-by: Andrey Ryabinin --- fs/userfaultfd.c | 5 +++-- include/linux/userfaultfd_k.h| 2 +- include/uapi/linux/userfaultfd.h | 11 +- mm/userfaultfd.c | 36

[Devel] [PATCH vz8 07/42] mm/gup: fix __get_user_pages() on fault retry of hugetlb

2020-04-16 Thread Andrey Ryabinin
Mel Gorman Cc: Mike Kravetz Cc: Mike Rapoport Cc: Pavel Emelyanov Link: http://lkml.kernel.org/r/20200220155353.8676-3-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit ad415db817964e96df824e8bb1a861527f8012b6) Signed-off-by: Andr

[Devel] [PATCH vz8 29/42] userfaultfd: wp: apply _PAGE_UFFD_WP bit

2020-04-16 Thread Andrey Ryabinin
Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 292924b260247483a58916f6d3550d8c92f32f55) Signed-off-by: Andrey Ryabinin --- include/linux/mm.h | 5 + mm/huge_memory.c | 18 +- mm/memory.c| 4 ++-- mm/

[Devel] [PATCH vz8 09/42] x86/mm: use helper fault_signal_pending()

2020-04-16 Thread Andrey Ryabinin
melyanov Link: http://lkml.kernel.org/r/20200220155353.8676-5-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 39678191cd8988c811813baf4c97b43bf46094e4) Signed-off-by: Andrey Ryabinin --- arch/x86/mm/fault.c | 28 +---

[Devel] [PATCH vz8 23/42] userfaultfd: wp: hook userfault handler to write protection fault

2020-04-16 Thread Andrey Ryabinin
y picked from commit 529b930b87d997c3d231c9d8638a0bf8db569d70) Signed-off-by: Andrey Ryabinin --- mm/memory.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index 855d3109edd1..b261dec43bf4 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -2740,6 +2740,11 @@ static i

[Devel] [PATCH vz8 24/42] userfaultfd: wp: add WP pagetable tracking to x86

2020-04-16 Thread Andrey Ryabinin
Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-4-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 5a281062af1d43d3f3956a6b429c2d727bc92603) Signed-off-by: Andrey Ryabinin -

[Devel] [PATCH vz8 36/42] userfaultfd: wp: enabled write protection in userfaultfd API

2020-04-16 Thread Andrey Ryabinin
Link: http://lkml.kernel.org/r/20200220163112.11409-15-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit e06f1e1dd4998ffc9da37f580703b55a93fc4de4) Signed-off-by: Andrey Ryabinin --- include/uapi/linux/userfaultfd.h | 6 -- 1 file

[Devel] [PATCH vz8 39/42] userfaultfd: wp: declare _UFFDIO_WRITEPROTECT conditionally

2020-04-16 Thread Andrey Ryabinin
f-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 14819305e09fe4fda546f0dfa12134c8e5366616) Signed-off-by: Andrey Ryabinin --- fs/userfaultfd.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.

[Devel] [PATCH vz8 21/42] mm/gup: Let __get_user_pages_locked() return -EINTR for fatal signal

2020-04-16 Thread Andrey Ryabinin
://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit ae46d2aa6a7fbe8ca0946f24b061b6ccdc6c3f25) Signed-off-by: Andrey Ryabinin --- mm/gup.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 3d08b68c210f..049e05960e1e 100644 --- a/mm/gup.c +++

[Devel] [PATCH vz8 10/42] arm64/mm: use helper fault_signal_pending()

2020-04-16 Thread Andrey Ryabinin
melyanov Link: http://lkml.kernel.org/r/20200220155927.9264-1-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit b502f038f2ffc97a60fefcc120a868aa46009060) Signed-off-by: Andrey Ryabinin --- arch/arm64/mm/fault.c | 19 +++---

[Devel] [PATCH vz8 37/42] userfaultfd: wp: don't wake up when doing write protect

2020-04-16 Thread Andrey Ryabinin
Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-16-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 23080e2783ba45208795faad124eab0e0bdae85a) Signed-off-by: Andrey Ryabinin -

[Devel] [PATCH vz8 01/42] userfaultfd: selftest: recycle lock threads first

2020-04-16 Thread Andrey Ryabinin
i Cc: "Dr . David Alan Gilbert" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 7eaa8c969efa77127de9a05856eef9e5d22cf487) Signed-off-by: Andrey Ryabinin --- tools/testing/selftests/vm/userfaultfd.c | 11

[Devel] [PATCH vz8 16/42] mm: introduce FAULT_FLAG_INTERRUPTIBLE

2020-04-16 Thread Andrey Ryabinin
eedcf278304e05ebd2c96807487c97db61) Signed-off-by: Andrey Ryabinin --- fs/userfaultfd.c | 4 +--- include/linux/mm.h | 39 --- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index 905bad9139bb..ebabf5983830 1

[Devel] [PATCH vz8 02/42] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2020-04-16 Thread Andrey Ryabinin
: Jann Horn Acked-by: Jason Gunthorpe Acked-by: Michal Hocko Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 04f5866e41fb70690e28397487d8bd8eea7d712a) Signed-off-by: Andrey Ryabinin --- fs/proc/task_mmu.c

[Devel] [PATCH vz8 25/42] userfaultfd: wp: userfaultfd_pte/huge_pmd_wp() helpers

2020-04-16 Thread Andrey Ryabinin
erry picked from commit 55adf4de30346e0ec6b988cb9b885a5dddc954af) Signed-off-by: Andrey Ryabinin --- include/linux/userfaultfd_k.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h index 52dcb3beaa5e..8fc07c5af632 100

[Devel] [PATCH vz8 06/42] mm/gup: rename "nonblocking" to "locked" where proper

2020-04-16 Thread Andrey Ryabinin
(cherry picked from commit 4f6da93411806db2f3e58193b31b95e8c6737616) Signed-off-by: Andrey Ryabinin --- mm/gup.c | 44 +--- mm/hugetlb.c | 8 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index fc5f98069f4e..f6

[Devel] [PATCH vz8 27/42] mm: merge parameters for change_protection()

2020-04-16 Thread Andrey Ryabinin
Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-7-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 58705444c45b3ca987b03bd9beb41bbbe41ae439) Signed-off-by: Andrey Ryabinin --- include/linux/huge_mm.h | 2 +-

[Devel] [PATCH vz8 05/42] userfaultfd: wrap the common dst_vma check into an inlined function

2020-04-16 Thread Andrey Ryabinin
-by: Andrey Ryabinin --- mm/userfaultfd.c | 56 +++- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c index 458acda96f20..8d26d35f1203 100644 --- a/mm/userfaultfd.c +++ b/mm/userfaultfd.c @@ -20,6 +20,36

[Devel] [PATCH vz8 35/42] userfaultfd: wp: add the writeprotect API to userfaultfd ioctl

2020-04-16 Thread Andrey Ryabinin
c: Mike Rapoport Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-14-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03) Signed-off-by: Andr

[Devel] [PATCH vz8 15/42] mm: introduce FAULT_FLAG_DEFAULT

2020-04-16 Thread Andrey Ryabinin
e3a252e8fb76b3411d66) Signed-off-by: Andrey Ryabinin --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c| 2 +- arch/arm/mm/fault.c| 2 +- arch/arm64/mm/fault.c | 2 +- arch/hexagon/mm/vm_fault.c | 2 +- arch/ia64/mm/fault.c | 2 +- arch/m68k/mm/fault.c | 2 +-

[Devel] [PATCH vz8 14/42] userfaultfd: don't retake mmap_sem to emulate NOPAGE

2020-04-16 Thread Andrey Ryabinin
220160234.9646-1-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit ef429ee7409aa7cbe4c3c9e2df5dc6abedfab493) Signed-off-by: Andrey Ryabinin --- fs/userfaultfd.c | 24 1 file changed, 24 deletions(-) diff --git a/f

[Devel] [PATCH vz8 08/42] mm: introduce fault_signal_pending()

2020-04-16 Thread Andrey Ryabinin
rg/r/20200220155353.8676-4-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 4ef873226ceb9c7bf11a922caddc5698a24bcfaf) Signed-off-by: Andrey Ryabinin --- arch/alpha/mm/fault.c| 2 +- arch/arm/mm/fault.c | 2 +- arc

[Devel] [PATCH vz8 11/42] powerpc/mm: use helper fault_signal_pending()

2020-04-16 Thread Andrey Ryabinin
://lkml.kernel.org/r/20200220160222.9422-1-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit c9a0dad162014182867f81b28bb7a4b691d65595) Signed-off-by: Andrey Ryabinin --- arch/powerpc/mm/fault.c | 12 1 file changed, 4 insertions(+),

[Devel] [PATCH vz8 12/42] sh/mm: use helper fault_signal_pending()

2020-04-16 Thread Andrey Ryabinin
y picked from commit fb027ada051a9e2d70a069b2aa62fb6f52100bbf) Signed-off-by: Andrey Ryabinin --- arch/sh/mm/fault.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c index b8e7bb84b6b1..e1a257a83fb6 100644 --- a/arch/sh/mm/fault.c +++ b/arch/sh/mm/fault.

[Devel] [PATCH vz8 42/42] userfaultfd: selftests: add write-protect test

2020-04-16 Thread Andrey Ryabinin
Rapoport Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-20-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 9b12488a7711b9aa2d0915f6949a8ad2069eb072) Signed-off-by: Andrey

[Devel] [PATCH vz8 32/42] userfaultfd: wp: support swap and page migration

2020-04-16 Thread Andrey Ryabinin
ke Kravetz Cc: Mike Rapoport Cc: Pavel Emelyanov Cc: Rik van Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-11-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit f45ec5ff16a75f96dac8c89862d75f1d8739efd4) S

[Devel] [PATCH vz8 19/42] mm/gup: allow to react to fatal signals

2020-04-16 Thread Andrey Ryabinin
y picked from commit 71335f37c5e8ec9225285206f7f875057b9737ad) Signed-off-by: Andrey Ryabinin --- mm/gup.c | 12 +--- mm/hugetlb.c | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index cdf438ea8621..3d08b68c210f 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -507,7 +507,7 @@ sta

[Devel] [PATCH vz8 40/42] userfaultfd: selftest: generalize read and poll

2020-04-16 Thread Andrey Ryabinin
irill A . Shutemov" Cc: Shaohua Li Cc: Andrea Arcangeli Cc: "Dr . David Alan Gilbert" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 04d877319e2aa3895cc7998adb32de0967d3927b) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH vz8 38/42] userfaultfd: wp: UFFDIO_REGISTER_MODE_WP documentation update

2020-04-16 Thread Andrey Ryabinin
l Emelyanov Cc: Rik van Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-17-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 57e5d4f278b9522646b49a3a97ebf5f2b8f9d4cf) Signed-off-by: Andrey Ryabinin ---

[Devel] [PATCH vz8 18/42] mm/gup: allow VM_FAULT_RETRY for multiple times

2020-04-16 Thread Andrey Ryabinin
y picked from commit 4426e945df588f2878affddf88a51259200f7e29) Signed-off-by: Andrey Ryabinin --- mm/gup.c | 27 +-- mm/hugetlb.c | 6 -- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index e06aa55b65b2..cdf438ea8621 100644 --- a/mm/gup.c +++

[Devel] [PATCH vz8 13/42] mm: return faster for non-fatal signals in user mode faults

2020-04-16 Thread Andrey Ryabinin
ke Kravetz Cc: Mike Rapoport Cc: Pavel Emelyanov Link: http://lkml.kernel.org/r/20200220160230.9598-1-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 8b9a65fd282c1d2e5b8ba8d8afaf652cde27b5e7) Signed-off-by: Andrey Ryabinin ---

[Devel] [PATCH vz8 28/42] mm: thp: fix flags for pmd migration when split

2020-04-16 Thread Andrey Ryabinin
38 (cherry picked from commit 2e83ee1d8694a61d0d95a5b694f2e61e8dde8627) Signed-off-by: Andrey Ryabinin --- mm/huge_memory.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 77a827a55703..7b652b3a70e6 10064

[Devel] [PATCH vz8 20/42] mm/userfaultfd: honor FAULT_FLAG_KILLABLE in fault path

2020-04-16 Thread Andrey Ryabinin
y picked from commit 3e69ad081c18d138fc7fd0f1ceef3b055ab10549) Signed-off-by: Andrey Ryabinin --- fs/userfaultfd.c | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index ebabf5983830..0bfbe5182773 100644 --- a/fs/us

[Devel] [PATCH vz8 33/42] khugepaged: skip collapse if uffd-wp detected

2020-04-16 Thread Andrey Ryabinin
Riel Cc: Shaohua Li Link: http://lkml.kernel.org/r/20200220163112.11409-12-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit e1e267c7928fe387e5e1cffeafb0de2d0473663a) Signed-off-by: Andrey Ryabinin --- include/trace/events/huge

[Devel] [PATCH vz8 04/42] fs/userfaultfd.c: wp: clear VM_UFFD_MISSING or VM_UFFD_WP during userfaultfd_register()

2020-04-16 Thread Andrey Ryabinin
/20191004232834.gp13...@redhat.com Signed-off-by: Andrea Arcangeli Reported-by: Wei Yang Reviewed-by: Wei Yang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 9d4678eb170c4c632174d1fec8ecee31c2f314f9) Signed-off-by: Andrey

[Devel] [PATCH vz8 31/42] userfaultfd: wp: add pmd_swp_*uffd_wp() helpers

2020-04-16 Thread Andrey Ryabinin
://lkml.kernel.org/r/20200220163112.11409-10-pet...@redhat.com Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-102938 (cherry picked from commit 2e3d5dc508cf001c4fb2d15515ebe6f30df88f76) Signed-off-by: Andrey Ryabinin --- arch/x86/include/asm/pgtable.h | 15 +++

[Devel] [PATCH vz8] mm: check shrinker is memcg-aware in register_shrinker_prepared()

2020-03-30 Thread Andrey Ryabinin
13a-4ed9-d6e52390c...@virtuozzo.com Fixes: 7e010df53c80 "mm: use special value SHRINKER_REGISTERING instead of list_empty() check" Signed-off-by: Kirill Tkhai Reported-by: Cc: Andrey Ryabinin Cc: Johannes Weiner Cc: Josef Bacik Cc: Mel Gorman Cc: Michal Hocko Cc: Tetsuo Handa Cc:

[Devel] [PATCH vz8 15/19] mm/vmscan.c: generalize shrink_slab() calls in shrink_node()

2020-03-27 Thread Andrey Ryabinin
/153063068338.1818.11496084754797453962.stgit@localhost.localdomain Signed-off-by: Vladimir Davydov Signed-off-by: Kirill Tkhai Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li Ro

[Devel] [PATCH vz8 06/19] mm/workingset.c: refactor workingset_init()

2020-03-27 Thread Andrey Ryabinin
/r/153063057666.1818.17625951186610808734.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner

[Devel] [PATCH vz8 05/19] mm, memcg: assign memcg-aware shrinkers bitmap to memcg

2020-03-27 Thread Andrey Ryabinin
: http://lkml.kernel.org/r/521f9e5f-c436-b388-fe83-4dc870bfb...@virtuozzo.com Link: http://lkml.kernel.org/r/153063056619.1818.12550500883688681076.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris

[Devel] [PATCH vz8 07/19] fs/super.c: refactor alloc_super()

2020-03-27 Thread Andrey Ryabinin
Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing Cc: Matthew Wilcox Cc: Matthias Kaehlcke Cc: Mel Gorman Cc: Michal

[Devel] [PATCH vz8 16/19] mm: add SHRINK_EMPTY shrinker methods return value

2020-03-27 Thread Andrey Ryabinin
rnel.org/r/153063069574.1818.11037751256699341813.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li R

[Devel] [PATCH vz8 11/19] mm/list_lru.c: pass lru argument to memcg_drain_list_lru_node()

2020-03-27 Thread Andrey Ryabinin
Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing Cc: Matthew Wilcox Cc: Matthias Kaehlcke Cc: Mel Gorman Cc: Michal Hocko Cc: Minchan Kim Cc: Philippe Ombredanne

[Devel] [PATCH vz8 18/19] mm/vmscan.c: move check for SHRINKER_NUMA_AWARE to do_shrink_slab()

2020-03-27 Thread Andrey Ryabinin
. Link: http://lkml.kernel.org/r/153320759911.18959.8842396230157677671.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Reviewed-by: Andrew Morton Cc: Vladimir Davydov Cc: Michal Hocko Cc: Andrey Ryabinin Cc: "Huang, Ying" Cc: Tetsuo Handa Cc: Matthew Wilcox Cc: Shakeel Butt

[Devel] [PATCH vz8 13/19] mm/list_lru.c: set bit in memcg shrinker bitmap on first list_lru item appearance

2020-03-27 Thread Andrey Ryabinin
Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing Cc: Matthew Wilcox Cc: Matthias Kaehlck

[Devel] [PATCH vz8 12/19] mm/memcontrol.c: export mem_cgroup_is_root()

2020-03-27 Thread Andrey Ryabinin
From: Kirill Tkhai This will be used in next patch. Link: http://lkml.kernel.org/r/153063064347.1818.1987011484100392706.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg

[Devel] [PATCH vz8 04/19] mm/memcontrol.c: move up for_each_mem_cgroup{, _tree} defines

2020-03-27 Thread Andrey Ryabinin
-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing Cc: Matthew Wilcox Cc: Matthias Kaehlcke Cc: Mel Gorman Cc: Michal Hocko Cc: Minchan Kim Cc: Philippe

[Devel] [PATCH vz8 14/19] mm/vmscan.c: iterate only over charged shrinkers during memcg shrink_slab()

2020-03-27 Thread Andrey Ryabinin
/153063066653.1818.976035462801487910.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing C

[Devel] [PATCH vz8 08/19] fs: propagate shrinker::id to list_lru

2020-03-27 Thread Andrey Ryabinin
/153063059758.1818.14866596416857717800.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bac

[Devel] [PATCH vz8 03/19] mm: assign id to every memcg-aware shrinker

2020-03-27 Thread Andrey Ryabinin
/153063054586.1818.6041047871606697364.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bac

[Devel] [PATCH vz8 19/19] mm: use special value SHRINKER_REGISTERING instead of list_empty() check

2020-03-27 Thread Andrey Ryabinin
ldomain Signed-off-by: Kirill Tkhai Reviewed-by: Andrew Morton Cc: Vladimir Davydov Cc: Michal Hocko Cc: Andrey Ryabinin Cc: "Huang, Ying" Cc: Tetsuo Handa Cc: Matthew Wilcox Cc: Shakeel Butt Cc: Josef Bacik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds

[Devel] [PATCH vz8 01/19] mm/list_lru.c: combine code under the same define

2020-03-27 Thread Andrey Ryabinin
Josef Bacik Cc: Guenter Roeck Cc: Matthew Wilcox Cc: Li RongQing Cc: Andrey Ryabinin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit e0295238e50f1aa16d4c902c837fd8d17861b698) Signed-off-by: Andrey Ryabinin --- mm/list_lru.c | 18 --

[Devel] [PATCH vz8 10/19] mm/list_lru: pass dst_memcg argument to memcg_drain_list_lru_node()

2020-03-27 Thread Andrey Ryabinin
-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing Cc: Matthew Wilcox Cc: Matthias Kaehlcke Cc: Mel Gorman Cc: Michal Hocko Cc: Minchan Kim Cc: Philippe

[Devel] [PATCH vz8 17/19] mm/vmscan.c: clear shrinker bit if there are no objects related to memcg

2020-03-27 Thread Andrey Ryabinin
it@localhost.localdomain Link: http://lkml.kernel.org/r/153063070859.1818.11870882950920963480.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck C

[Devel] [PATCH vz8 09/19] mm/list_lru.c: add memcg argument to list_lru_from_kmem()

2020-03-27 Thread Andrey Ryabinin
Cc: Al Viro Cc: Andrey Ryabinin Cc: Chris Wilson Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: "Huang, Ying" Cc: Johannes Weiner Cc: Josef Bacik Cc: Li RongQing Cc: Matthew Wilcox Cc: Matthias Kaehlcke Cc: Mel Gorman Cc: Michal Hocko Cc: Minchan Kim Cc: Philippe Ombredanne

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