[Devel] [PATCH vz8 02/19] mm: introduce CONFIG_MEMCG_KMEM as combination of CONFIG_MEMCG && !CONFIG_SLOB

2020-03-27 Thread Andrey Ryabinin
0481138.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

[Devel] [PATCH vz8] mm: remove the tswap

2020-03-27 Thread Andrey Ryabinin
The idea of keeping containers swap in the memory, like tswap does, doesn't make much sense, since it's better to give more memory to a container. Hence, remove the tswap. Signed-off-by: Andrey Ryabinin --- fs/proc/meminfo.c | 8 - mm/Kconfig| 10 -- mm/Makefile |

[Devel] [PATCH vz8] mm/vmscan: shrink tcache upfront everything else

2020-03-27 Thread Andrey Ryabinin
403 Signed-off-by: Andrey Ryabinin --- mm/internal.h | 29 + mm/tcache.c | 8 mm/vmscan.c | 43 +-- 3 files changed, 74 insertions(+), 6 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 9e3654d70289..ee

[Devel] [PATCH vz8 07/15] mm: vmscan: move inactive_list_is_low() swap check to the caller

2020-03-26 Thread Andrey Ryabinin
22144803.302233-4-han...@cmpxchg.org Signed-off-by: Johannes Weiner Reviewed-by: Roman Gushchin Reviewed-by: Shakeel Butt Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit a108629149cc63cfb6fd446184e3e578e04bcfd1) Signed-off-by:

[Devel] [PATCH vz8 15/15] mm: vmscan: enforce inactive:active ratio at the reclaim root

2020-03-26 Thread Andrey Ryabinin
.org/r/1573848697-29262-1-git-send-email-...@lca.pw Link: http://lkml.kernel.org/r/20191107205334.158354-4-han...@cmpxchg.org Signed-off-by: Johannes Weiner Reviewed-by: Suren Baghdasaryan Reviewed-by: Shakeel Butt Cc: Andrey Ryabinin Cc: Rik van Riel Cc: Michal Hocko Signed-off-by: Andr

[Devel] [PATCH vz8 12/15] mm: vmscan: harmonize writeback congestion tracking for nodes & memcgs

2020-03-26 Thread Andrey Ryabinin
man Gushchin Reviewed-by: Shakeel Butt Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 1b05117df78e035afb5f66ef50bf8750d976ef08) Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 6 +-- include/linux/mmzone.h | 11 +++--

[Devel] [PATCH vz8 04/15] mm: fix inactive list balancing between NUMA nodes and cgroups

2020-03-26 Thread Andrey Ryabinin
ked from commit 3b991208b897f52507168374033771a984b947b1) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 2007e1cd32c3..87286d30888b 100644 --- a/mm/vmscan.c +++ b/mm/vmsc

[Devel] [PATCH vz8 09/15] mm: vmscan: replace shrink_node() loop with a retry jump

2020-03-26 Thread Andrey Ryabinin
iewed-by: Shakeel Butt Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit d2af339706be318dadcbe14c8935426ff401d7b1) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 261 ++-- 1 file changed

[Devel] [PATCH vz8 10/15] mm: vmscan: turn shrink_node_memcg() into shrink_lruvec()

2020-03-26 Thread Andrey Ryabinin
Torvalds (cherry picked from commit afaf07a65ddbdd70871cc3b81463f2a8f3884b6f) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index e12bd53b846f..2b443e6f5bc3 100644 --- a/mm/vmscan.c

[Devel] [PATCH vz8 11/15] mm: vmscan: split shrink_node() into node part and memcgs part

2020-03-26 Thread Andrey Ryabinin
orton Signed-off-by: Linus Torvalds (cherry picked from commit 0f6a5cff43d3bcd6aa54c9af267737249d02aa21) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 48 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.

[Devel] [PATCH vz8 08/15] mm: vmscan: naming fixes: global_reclaim() and sane_reclaim()

2020-03-26 Thread Andrey Ryabinin
hin Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit b5ead35e7e1d3434ce436dfcb2af32820ce54589) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 46 ++ 1 file changed, 22 insertions(+

[Devel] [PATCH vz8 03/15] mm: workingset: tell cache transitions from workingset thrashing

2020-03-26 Thread Andrey Ryabinin
lnar Cc: Johannes Weiner Cc: Mike Galbraith Cc: Peter Enderborg Cc: Randy Dunlap Cc: Shakeel Butt Cc: Tejun Heo Cc: Vinayak Menon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 1899ad18c6072d689896badafb81267b0a1092a4) Signed-off-by: Andrey Ryabinin

[Devel] [PATCH vz8 14/15] mm: vmscan: detect file thrashing at the reclaim root

2020-03-26 Thread Andrey Ryabinin
.org Link: http://lkml.kernel.org/r/20191107205334.158354-3-han...@cmpxchg.org Signed-off-by: Johannes Weiner Reviewed-by: Suren Baghdasaryan Cc: Andrey Ryabinin Cc: Michal Hocko Cc: Rik van Riel Cc: Shakeel Butt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry pic

[Devel] [PATCH vz8 01/15] mm/vmscan: remove unused lru_pages argument

2020-03-26 Thread Andrey Ryabinin
Since 9092c71bb724 ("mm: use sc->priority for slab shrink targets") the argument 'unsigned long *lru_pages' passed around with no purpose. Remove it. Link: http://lkml.kernel.org/r/20190228083329.31892-4-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin Acked-by: Jo

[Devel] [PATCH vz8 06/15] mm: clean up and clarify lruvec lookup procedure

2020-03-26 Thread Andrey Ryabinin
ew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 867e5e1de14b2b2bde324cdfeec3f3f83eb21424) Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 24 include/linux/mmzone.h | 15 --- mm/memcontrol.c| 6

[Devel] [PATCH vz8 05/15] mm: vmscan: simplify lruvec_lru_size()

2020-03-26 Thread Andrey Ryabinin
ned-off-by: Johannes Weiner Reviewed-by: Roman Gushchin Reviewed-by: Shakeel Butt Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit de3b01506ea494b46aab05dc143b69adbf2aaa9d) Signed-off-by: Andrey Ryabinin --- mm/vmscan.c | 18 +-

[Devel] [PATCH vz8 13/15] mm: vmscan: move file exhaustion detection to the node level

2020-03-26 Thread Andrey Ryabinin
r node and setting a flag in the scan_control. Link: http://lkml.kernel.org/r/20191107205334.158354-2-han...@cmpxchg.org Signed-off-by: Johannes Weiner Reviewed-by: Shakeel Butt Reviewed-by: Suren Baghdasaryan Cc: Andrey Ryabinin Cc: Michal Hocko Cc: Rik van Riel Signed-off-by: Andrew Morton S

[Devel] [PATCH vz8 02/15] mm/workingset: remove unused @mapping argument in workingset_eviction()

2020-03-26 Thread Andrey Ryabinin
workingset_eviction() doesn't use and never did use the @mapping argument. Remove it. Link: http://lkml.kernel.org/r/20190228083329.31892-1-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin Acked-by: Johannes Weiner Acked-by: Rik van Riel Acked-by: Vlastimil Babka Acked-by: Mel G

[Devel] [PATCH rh7] memcg, bc/vm_pages.c: account some swapped memory as used in CT in /proc/meminfo

2020-03-17 Thread Andrey Ryabinin
was swapped, so leave it as is. https://jira.sw.ru/browse/PSBM-102266 Signed-off-by: Andrey Ryabinin --- kernel/bc/vm_pages.c | 33 + mm/memcontrol.c | 29 + 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/kernel/

[Devel] [PATCH rh7] cgroup/debug: disable css_get/put stacks saver by default.

2020-03-13 Thread Andrey Ryabinin
Disable css_get/put stacks saver by default as they have too much overhead. Add file in debugfs to enable it: echo 1 > /sys/kernel/debug/css_stacks Signed-off-by: Andrey Ryabinin --- include/linux/cgroup.h | 12 +-- kernel/cgroup.c|

Re: [Devel] [PATCH rh7 v2] mm/memcontrol: memcg_move_account() get rid of lock_page dependency.

2020-03-05 Thread Andrey Ryabinin
On 3/5/20 8:19 AM, Vasily Averin wrote: > On 3/4/20 3:56 PM, Andrey Ryabinin wrote: >> Instead of trylock'ing the page, use the lru_lock to prevent the >> racing against mem_cgroup_migrate(). So the memcg_move_account() doesn't >> depend on hung IO. >> >>

[Devel] [PATCH rh7] ms/VFS: use synchronize_rcu_expedited() in namespace_unlock()

2020-03-04 Thread Andrey Ryabinin
-by: Al Viro https://jira.sw.ru/browse/PSBM-101530 (cherry-picked from commit 22cb7405fada5305926d9bbcb476c1cd638d2dab) Signed-off-by: Andrey Ryabinin --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index d4527f5bd75a

[Devel] [PATCH rh7 v2] mm/memcontrol: memcg_move_account() get rid of lock_page dependency.

2020-03-04 Thread Andrey Ryabinin
flined cgroup the race agains try_get_mem_cgroup_from_page() shouldn't be possible as it will bail out on failed css_tryget(). https://jira.sw.ru/browse/PSBM-101639 https://jira.sw.ru/browse/PSBM-101757 https://jira.sw.ru/browse/PSBM-94117 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 32 ++

Re: [Devel] [PATCH rh7] mm/memcontrol: memcg_move_account() get rid of lock_page dependency.

2020-03-04 Thread Andrey Ryabinin
On 3/4/20 12:32 PM, Kirill Tkhai wrote: > On 03.03.2020 18:48, Andrey Ryabinin wrote: >> Instead of trylock'ing the page, use the lru_lock to prevent the >> racing against mem_cgroup_migrate(). So the memcg_move_account() doesn't >> depend on hung IO. >>

[Devel] [PATCH rh7] mm/memcontrol: memcg_move_account() get rid of lock_page dependency.

2020-03-03 Thread Andrey Ryabinin
SBM-101639 https://jira.sw.ru/browse/PSBM-101757 https://jira.sw.ru/browse/PSBM-94117 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index f4629123e7fb..bfb5bbdf9ecb 100644 -

[Devel] [PATCH rh7 5/5] mm/filemap: add pfcache support to filemap_map_pages

2020-02-26 Thread Andrey Ryabinin
Make filmeap_map_pages to map pages from pfcache if that's available. https://jira.sw.ru/browse/PSBM-101300 Signed-off-by: Andrey Ryabinin --- mm/filemap.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index bbddfeb

[Devel] [PATCH rh7 4/5] mm: add debugfs tunable for fault_around_order

2020-02-26 Thread Andrey Ryabinin
xander Viro Cc: Dave Chinner Cc: Ning Qu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-101300 (cherry picked from commit 1592eef01505177ed50149795a1560ec5a139df1) Signed-off-by: Andrey Ryabinin --- m

[Devel] [PATCH rh7 3/5] mm: cleanup size checks in filemap_fault() and filemap_map_pages()

2020-02-26 Thread Andrey Ryabinin
ansen Cc: Alexander Viro Cc: Dave Chinner Cc: Ning Qu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-101300 (cherry picked from commit 99e3e53f4e0fd807607bf381e14f6de8feedd383) Signed-off-by: Andrey Ryabinin --- mm/filemap.c | 14 +++--

[Devel] [PATCH rh7 1/5] mm: introduce vm_ops->map_pages()

2020-02-26 Thread Andrey Ryabinin
y: Kirill A. Shutemov Acked-by: Linus Torvalds Cc: Mel Gorman Cc: Rik van Riel Cc: Andi Kleen Cc: Matthew Wilcox Cc: Dave Hansen Cc: Alexander Viro Cc: Dave Chinner Cc: Ning Qu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://jira.sw.ru/browse/PSBM-101300 (cherry-picked

[Devel] [PATCH rh7 2/5] mm: implement ->map_pages for page cache

2020-02-26 Thread Andrey Ryabinin
picked from commit f1820361f83d556a7f0a9f629100f3825e594328) Signed-off-by: Andrey Ryabinin --- fs/9p/vfs_file.c | 1 + fs/btrfs/file.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 | 1

[Devel] [PATCH rh7] mm/memcontrol: offload offline reclaim to background work.

2020-02-19 Thread Andrey Ryabinin
Reclaiming memcg memory during offline may take significant amount of time. It's better to offload heavy work to decrease cgroup_mutex held time. https://jira.sw.ru/browse/PSBM-101639 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 31 +-- 1 file change

[Devel] [PATCH rh7] mm: slightly optimize __handle_mm_fault()

2020-02-17 Thread Andrey Ryabinin
iff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # . . ... # 1.87% -0.37% [kernel.vmlinux] [k] handle_mm_fault https://jira.sw.ru/browse/PSBM-101300 Signed-off-by: And

Re: [Devel] [PATCH rh7] Revert "ve/sched: introduce cond_resched_may_throttle"

2020-02-10 Thread Andrey Ryabinin
"") > 3ad70f5be8a36 ("Revert "sched: add WARN_ON's to debug task boosting"") > > Thus the commit being reverted does nothing now, > let's revert it as well. > > https://jira.sw.ru/browse/PSBM-100188 > > Signed-off-by: Konstantin Kho

Re: [Devel] [PATCH rh7] Revert "ve/kvm: Allow scheduler throttling in __vcpu_run()"

2020-02-10 Thread Andrey Ryabinin
"") > 3ad70f5be8a36 ("Revert "sched: add WARN_ON's to debug task boosting"") > > So remove its users as well. > > https://jira.sw.ru/browse/PSBM-100188 > > Signed-off-by: Konstantin Khorenko Acked-by: Andrey Ryabinin > --- > arch/

[Devel] [PATCH rh7 2/3] quota: Move locking into clear_dquot_dirty()

2020-01-27 Thread Andrey Ryabinin
1e0b7cb062f227439a1d8e7921e85c8df52adc41) Signed-off-by: Andrey Ryabinin --- fs/quota/dquot.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index bc5ff11f68b8..989dce79fa12 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -384,12 +384,15

[Devel] [PATCH rh7 3/3] quota: fix potential infinite loop

2020-01-27 Thread Andrey Ryabinin
-by: Jan Kara https://jira.sw.ru/browse/PSBM-101043 (cherry picked from commit dd5f6279732e8885061d7455b9d86fdcfdf7f183) Signed-off-by: Andrey Ryabinin --- fs/quota/dquot.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index

[Devel] [PATCH rh7 1/3] quota: Do not dirty bad dquots

2020-01-27 Thread Andrey Ryabinin
. Signed-off-by: Jan Kara https://jira.sw.ru/browse/PSBM-101043 (cherry picked from commit 4580b30ea887fc27e57dabd56724ca24d936dc8a) Signed-off-by: Andrey Ryabinin --- fs/quota/dquot.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota

[Devel] [PATCH rh8 1/2] ms/cgroup: let a symlink too be created with a cftype file

2020-01-24 Thread Andrey Ryabinin
54b7b868e826b294687c439b68ec55fe20cafe5b) Signed-off-by: Andrey Ryabinin --- include/linux/cgroup-defs.h | 3 +++ kernel/cgroup/cgroup.c | 33 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index

[Devel] [PATCH rh8 2/2] ms/block, bfq: add weight symlink to the bfq.weight cgroup parameter

2020-01-24 Thread Andrey Ryabinin
56bd39a52c6649973a35) https://jira.sw.ru/browse/PSBM-101019 Signed-off-by: Andrey Ryabinin --- block/bfq-cgroup.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c index c6113af31960..27f158f2ef2c 100644 --- a/block/bfq-cgroup.c +++

[Devel] [PATCH rh7 2/2] Revert "ve/sched: port boosting hacks against prio inversion"

2020-01-10 Thread Andrey Ryabinin
move it. https://jira.sw.ru/browse/PSBM-100188 Signed-off-by: Andrey Ryabinin --- include/linux/sched.h | 6 -- kernel/sched/core.c | 14 +-- kernel/sched/fair.c | 186 +--- kernel/sched/features.h | 3 - kernel/sched/sched.h| 6 +- 5 files change

[Devel] [PATCH rh7 1/2] Revert "sched: add WARN_ON's to debug task boosting"

2020-01-10 Thread Andrey Ryabinin
This reverts commit 3d851e6c647e378917248bb2f1733841eba47f09. Task boosting hacks are going to be removed, hence no need to debug it. https://jira.sw.ru/browse/PSBM-100188 Signed-off-by: Andrey Ryabinin --- kernel/sched/fair.c | 22 +- 1 file changed, 5 insertions(+), 17

[Devel] [PATCH rh7] mm/ksm: Don't WARN if page is still mapped in remove_stable_node()

2019-11-19 Thread Andrey Ryabinin
remove old stable nodes more thoroughly") Signed-off-by: Andrey Ryabinin --- mm/ksm.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 650dfb20b7b9..a8422a8862c1 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -846,13 +846,13 @@ static int rem

[Devel] [PATCH rh7] fs/splice: fix NULL-ptr deref in __generic_splice_read()

2019-11-18 Thread Andrey Ryabinin
this by using spd.pages instead. https://jira.sw.ru/browse/PSBM-99561 Signed-off-by: Andrey Ryabinin --- fs/splice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/splice.c b/fs/splice.c index a02038eaaaf3..7556a996be7a 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -347,7 +347,

[Devel] [PATCH rh7] epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove()

2019-11-18 Thread Andrey Ryabinin
/PSBM-99557 (cherry picked from commit 138e4ad67afd5c6c318b056b4d17c17f2c0ca5c0) Signed-off-by: Andrey Ryabinin --- fs/eventpoll.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index d0b1d07b0806..76

[Devel] [PATCH rh7 1/2] nbd: only clear the queue on device teardown

2019-11-06 Thread Andrey Ryabinin
2516ab1543fdd1f9d08385d73cae51f668a9f3dc) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index e4e30f650f9e..8e43eac169f4 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -642,7 +642,9

[Devel] [PATCH rh7 2/2] nbd: quiesce request queues to make sure no submissions are inflight

2019-11-06 Thread Andrey Ryabinin
commit b52c2e92546ee794a5bbab4d8ea435c1de85a8cb) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 8e43eac169f4..4a17d320d7fa 100644 --- a/drivers/block/nbd.c +++ b/drivers

[Devel] [PATCH rh7 2/2] nbd: move setting the bd_invalidated out of the loop

2019-11-05 Thread Andrey Ryabinin
bdev->bd_invalidated should be set only once, not once per connection. Move it out of the loop. Fixes: de0be3358f9b ("nbd: invalidate bdev after size update") Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --

[Devel] [PATCH rh7 1/2] nbd: move nbd_size_update() of of the loop.

2019-11-05 Thread Andrey Ryabinin
nbd_size_update() should be called only once, not once per-connection. Move it out of the loop. Fixes: 584f48d40cbc ("nbd: don't set the device size until we're connected") Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 3 +-- 1 file changed, 1 insertion(+), 2 dele

[Devel] [PATCH rh7 1/8] nbd: stop using the bdev everywhere

2019-11-01 Thread Andrey Ryabinin
-off-by: Jens Axboe https://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit 29eaadc0364943b6352e8994158febcb699c9f9b) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 92 ++--- 1 file changed, 37 insertions(+), 55 deletions(-) diff --git a

[Devel] [PATCH rh7 2/8] nbd: add device refcounting

2019-11-01 Thread Andrey Ryabinin
Axboe https://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit c6a4759ea0c9a7e7661f34f6943dafb1c6ae1b1c) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 68 +++-- 1 file changed, 54 insertions(+), 14 deletions(-) diff --git a/drivers/block

[Devel] [PATCH rh7 7/8] nbd: use bd_set_size when updating disk size

2019-11-01 Thread Andrey Ryabinin
using the bdev everywhere") cc: sta...@vger.kernel.org Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe https://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit 9e2b19675d1338d2a38e99194756f2db44a081df) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 10 +- 1

[Devel] [PATCH rh7 3/8] nbd: fix use after free on module unload

2019-11-01 Thread Andrey Ryabinin
. Reported-by: Ming Lei Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe https://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit 60ae36ad0340b1ba88530d6a5e141455dd3afd81) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 8 1 file changed, 4 insertions(+), 4 deleti

[Devel] [PATCH rh7 6/8] nbd: update size when connected

2019-11-01 Thread Andrey Ryabinin
the device size until we're connected") Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe https://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit c3f7c9397609705ef848cc98a5fb429b3e90c3c4) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 2 ++ 1 file changed, 2 in

[Devel] [PATCH rh7 4/8] nbd: don't set the device size until we're connected

2019-11-01 Thread Andrey Ryabinin
://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit 639812a1ed9bf49ae2c026086fbf975339cd1eef) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 6713deae68cb..9e0450300cc1 1

[Devel] [PATCH rh7 5/8] nbd: fix nbd device deletion

2019-11-01 Thread Andrey Ryabinin
osef Bacik Signed-off-by: Jens Axboe https://jira.sw.ru/browse/PSBM-99102 (cherry picked from commit 8364da4751cf22201d74933d5e634176f44ed407) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/d

[Devel] [PATCH rh7 8/8] nbd: invalidate bdev after size update

2019-11-01 Thread Andrey Ryabinin
/browse/PSBM-99102 Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 0eedb74183dc..79de456643cf 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -9

Re: [Devel] [PATCH rh7] ve/kmod: allow "nft_compat" module autoload from inside a Container

2019-10-31 Thread Andrey Ryabinin
CT > iptables v1.8.2 (nf_tables): Couldn't load match > `tos':No such file or directory > > https://jira.sw.ru/browse/PSBM-98948 > > Signed-off-by: Konstantin Khorenko > --- Acked-by: Andrey Ryabinin ___ Deve

Re: [Devel] [PATCH rh7] nbd: fix how we set bd_invalidated

2019-10-31 Thread Andrey Ryabinin
On 10/31/19 2:54 PM, Andrey Ryabinin wrote: > From: Josef Bacik > > bd_invalidated is kind of a pain wrt partitions as it really only > triggers the partition rescan if it is set after bd_ops->open() runs, so > setting it when we reset the device isn't useful. We al

[Devel] [PATCH rh7] nbd: fix how we set bd_invalidated

2019-10-31 Thread Andrey Ryabinin
994 (cherry picked from commit fe1f9e6659ca6124f500a0f829202c7c902fab0c) Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 726b940b0fe6..f110cb1c82f1 100644 --- a/drivers

[Devel] [PATCH rh7 1/2] cfq-iosched: don't call wbt_disable_default() with IRQs disabled

2019-10-30 Thread Andrey Ryabinin
k: hook up writeback throttling") Signed-off-by: Jens Axboe (cherry picked from commit 5d7f5ce15156af205e175e8fa5c669ba40bf0c5e) Signed-off-by: Andrey Ryabinin --- block/cfq-iosched.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/block/cfq-iosche

[Devel] [PATCH rh7 2/2] block: fix leak of q->rq_wb

2019-10-30 Thread Andrey Ryabinin
bt when we unregister the queue. Fixes: 87760e5eef35 ("block: hook up writeback throttling") Signed-off-by: Omar Sandoval Signed-off-by: Jens Axboe (cherry picked from commit 02ba8893ac9aa34fcb4ce2a9baef5615b190335a) Signed-off-by: Andrey Ryabinin --- block/blk-sysfs.c | 3 ++- 1 file c

[Devel] [PATCH vz8] cgroup: Allow mounting cgroups in containers.

2019-10-28 Thread Andrey Ryabinin
permission checks based on namespaces and don't need this ve-crud anymore. Signed-off-by: Andrey Ryabinin --- kernel/cgroup/cgroup.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 223ac0e46969..7376dd53cb84 100644 --- a/kernel/

Re: [Devel] [PATCH rh7] ve/net/core: allow to call setsockopt(SO_SNDBUFFORCE) from Containers

2019-10-25 Thread Andrey Ryabinin
; memory for a socket, so just threat SO_SNDBUFFORCE like SO_SNDBUF if > called inside a Container. > > Simple rule to test: > # nft add rule filter INPUT ct state related,established accept > > https://jira.sw.ru/browse/PSBM-98794 > > Signed-off-by

[Devel] [PATCH vz8 2/2] ve,kthread: fix use-after-return.

2019-10-17 Thread Andrey Ryabinin
__kthread_create_ve() passes pointer to the data on stack to another thread, and return immidiately causing use-after-return. Fix this by moving all in upper function which waits another thread finishes it's job. https://jira.sw.ru/browse/PSBM-93708 Signed-off-by: Andrey Ryabinin --- k

[Devel] [PATCH vz8 1/2] ve, kthread: Remove some useless crud.

2019-10-17 Thread Andrey Ryabinin
Simplify the code by removing useless macroses. Signed-off-by: Andrey Ryabinin --- include/linux/kthread.h | 16 kernel/ve/ve.c | 7 +-- net/sunrpc/svc.c| 2 +- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/include/linux/kthread.h b

[Devel] [PATCH rh7] mm/memcg: restore lost css_put() in memcg_kmem_cache_create_func()

2019-10-10 Thread Andrey Ryabinin
Restore lost css_put() in memcg_kmem_cache_create_func() otherwise mem cgroup cannot be destroyed. https://jira.sw.ru/browse/PSBM-98444 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d499deb94453

[Devel] [PATCH rh7] mm/slab: Fix deadlock on attempt to shrink slab.

2019-10-10 Thread Andrey Ryabinin
echo 1 > /sys/kernel/slab//shrink deadlocks as kmem_cache_shrink() attempts to lock slab_mutex which is already held by caller. Replace slab_mutex locking with [get,put]_online_mems(). This is what the sane kernel does. Signed-off-by: Andrey Ryabinin --- mm/slab_common.c | 4 ++-- 1 f

[Devel] [PATCH rh7 3/3] ms/NFS: Fix a double unlock from nfs_match, get_client

2019-10-03 Thread Andrey Ryabinin
ned-off-by: Benjamin Coddington Signed-off-by: Anna Schumaker https://jira.sw.ru/browse/PSBM-98297 (cherry picked from commit c260121a97a3e4df6536edbc2f26e166eff370ce) Signed-off-by: Andrey Ryabinin --- fs/nfs/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/cli

[Devel] [PATCH rh7 1/3] ms/NFS: make nfs_match_client killable

2019-10-03 Thread Andrey Ryabinin
5b9c7ecb0b6b22fcc92b) Signed-off-by: Andrey Ryabinin --- fs/nfs/client.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index dede78e54f12..0ba3b222bde5 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -295,6 +295,7 @@ stat

[Devel] [PATCH rh7 2/3] ms/NFS: Cleanup if nfs_match_client is interrupted

2019-10-03 Thread Andrey Ryabinin
e") Signed-off-by: Benjamin Coddington Signed-off-by: Trond Myklebust https://jira.sw.ru/browse/PSBM-98297 (cherry picked from commit 9f7761cf0409465075dadb875d5d4b8ef2f890c8) Signed-off-by: Andrey Ryabinin --- fs/nfs/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [Devel] [PATCH rh7] fuse: allow kernel to access "direct_io" files

2019-09-27 Thread Andrey Ryabinin
On 9/27/19 2:24 PM, Andrey Ryabinin wrote: > > > On 9/27/19 2:18 PM, Evgenii Shatokhin wrote: >> On 26.09.2019 18:52, Andrey Ryabinin wrote: >>> From: Miklos Szeredi >>> >>> Allow the kernel read and write on "direct_io" files. This

[Devel] [PATCH rh7 v2] fuse: allow kernel to access "direct_io" files again

2019-09-27 Thread Andrey Ryabinin
This partially reverts bogus f2ac00874c20 ("fuse: remove direct_IO_page"). The commit removed vital hunk needed to export fuse via nfsd. Let's bring it back. https://jira.sw.ru/browse/PSBM-97905 Signed-off-by: Andrey Ryabinin --- fs/fuse/file.c | 15 +++ 1 f

Re: [Devel] [PATCH rh7] fuse: allow kernel to access "direct_io" files

2019-09-27 Thread Andrey Ryabinin
On 9/27/19 2:18 PM, Evgenii Shatokhin wrote: > On 26.09.2019 18:52, Andrey Ryabinin wrote: >> From: Miklos Szeredi >> >> Allow the kernel read and write on "direct_io" files. This is >> necessary for nfs export and execute support. >> >> Th

[Devel] [PATCH rh7] fuse: allow kernel to access "direct_io" files

2019-09-26 Thread Andrey Ryabinin
quester to copy from/to the userspace filesystem. Signed-off-by: Miklos Szeredi https://jira.sw.ru/browse/PSBM-97905 (cherry picked from commit f4975c67dd9ad8eb47a4c77af0521a2b16ee0197) Signed-off-by: Andrey Ryabinin --- fs/fuse/file.c | 12 1 file changed, 12 insertions(+) diff

[Devel] [PATCH rh7] fs/writeback: fix lazyatime dirty inode writeback

2019-09-17 Thread Andrey Ryabinin
s variable instead of work->older_than_this. Fixes: 3b6234af8d34 ("ms/vfs: add support for a lazytime mount option") Signed-off-by: Andrey Ryabinin --- fs/fs-writeback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeba

[Devel] [PATCH rh7] block/nbd: Fix NULL pointer dereference

2019-09-11 Thread Andrey Ryabinin
rotect us from parallel NBD_CLEAR_SOCK. https://jira.sw.ru/browse/PSBM-97690 Signed-off-by: Andrey Ryabinin --- drivers/block/nbd.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index e0c6b623585d..2452b49efd56 100644 --- a/drivers/block/nbd.c ++

[Devel] [PATCH rh7 2/2] mm/memcg: close potential race of kmem unharge and reparent.

2019-08-14 Thread Andrey Ryabinin
Make sure that we uncharge ->kmem first, so that mem_cgroup_reparent_charges() won't see false positive ->memory <= ->kmem. Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/mm/memcontrol.c

[Devel] [PATCH rh7 1/2] mm/memcg: fix race with WARN_ON() check and kmem uncharging.

2019-08-14 Thread Andrey Ryabinin
tps://jira.sw.ru/browse/PSBM-97012 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 3385160f6168..435fdcf8c141 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4347,6 +

[Devel] [PATCH rh7] mm/memcg: correct timeout check.

2019-08-08 Thread Andrey Ryabinin
We should use time_before() instead of time_after(), since we want true value to repeat the loop before timeout reaches. https://jira.sw.ru/browse/PSBM-96889 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b

[Devel] [PATCH rh7] mm/page_alloc.c: check if page cgroup still in use during alloc/free.

2019-08-07 Thread Andrey Ryabinin
Add debug check to free_page() patch to make sure that we don't allocate/free pages with memcg marked as used. https://jira.sw.ru/browse/PSBM-96036 Signed-off-by: Andrey Ryabinin --- mm/page_alloc.c | 23 +++ mm/page_cgroup.c | 3 ++- 2 files changed, 25 insertions(

[Devel] [PATCH rh7 v2] mm/memcg: increase reparent timeout

2019-08-07 Thread Andrey Ryabinin
Make it 20 min. https://jira.sw.ru/browse/PSBM-96889 https://pmc.acronis.com/browse/VSTOR-25631 Signed-off-by: Andrey Ryabinin --- Changes since v1: Add debug times printing mm/memcontrol.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/memcontrol.c b/mm

Re: [Devel] [PATCH rh7] mm/memcg: increase reparent timeout

2019-08-07 Thread Andrey Ryabinin
On 8/7/19 12:41 PM, Andrey Ryabinin wrote: > Make it 20 min. > > https://jira.sw.ru/browse/PSBM-96889 Also https://pmc.acronis.com/browse/VSTOR-25631 > Signed-off-by: Andrey Ryabinin > --- > mm/memcontrol.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[Devel] [PATCH rh7] mm/memcg: increase reparent timeout

2019-08-07 Thread Andrey Ryabinin
Make it 20 min. https://jira.sw.ru/browse/PSBM-96889 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 884f1596bb24..28e777ab75ea 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c

[Devel] [PATCH rh7] mm/memcg: use timeout instead of iteration count to determine leak.

2019-08-05 Thread Andrey Ryabinin
100 reparent attempts seems too low, and hits too often. Try to use 2min timeout instead. https://jira.sw.ru/browse/PSBM-96533 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[Devel] [PATCH rh7] mm/memcg: Fix reparent warning again.

2019-07-17 Thread Andrey Ryabinin
In case of unsuccessful reparenting reparent_attempts counter will be -1, so intended warning will not trigger. Check diff of ->memory - ->kmem counters instead. It's correct and easier to read. Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 3 ++- 1 file changed, 2 inser

[Devel] [PATCH rh7 1/2] mm/memcontrol: fix memory.high

2019-07-05 Thread Andrey Ryabinin
Our commit b607d3e1a953 ("ms/mm: memcontrol: fold mem_cgroup_do_charge()") accidently loses piece of code making memory.high work. bring it back. Signed-off-by: Andrey Ryabinin --- include/linux/memcontrol.h | 2 ++ include/linux/sched.h | 3 ++ include/linux/tracehook.h |

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

2019-07-05 Thread Andrey Ryabinin
/browse/PSBM-94761 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 37 ++--- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index cc8cf887c205..a28a66bff002 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c

Re: [Devel] [PATCH rh7] mm/memcontrol: warn about leaking memory on reparanting

2019-07-01 Thread Andrey Ryabinin
ixes: e548e343c40b ("mm/memcontrol: don't reparent forever if counter > leaked.") > > https://pmc.acronis.com/browse/VSTOR-24241 > > Signed-off-by: Konstantin Khorenko > --- Acked-by: Andrey Ryabinin ___ Devel mailin

[Devel] [PATCH rh7] mm/memcontrol: don't reparent forever if counter leaked.

2019-06-19 Thread Andrey Ryabinin
not it's a leak, but just in case make several attempts. https://pmc.acronis.com/browse/VSTOR-24241 Signed-off-by: Andrey Ryabinin --- mm/memcontrol.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index d11aa24ed207..edc6bebc1f34 10

[Devel] [PATCH rh7] i40iw: use kvzalloc for large allocation of iwdev->mem_resources

2019-06-11 Thread Andrey Ryabinin
10-order allocation needed for iwdev->mem_resources in i40iw_initialize_hw_resources() may easily fail under memory fragmentation. Use kvzalloc to fallback to 0-order pages when high order aren't available. https://pmc.acronis.com/browse/VSTOR-23649 Signed-off-by: Andrey Ryabinin ---

[Devel] [PATCH rh7 1/2] memcg: mm_update_next_owner() should skip kthreads

2019-06-11 Thread Andrey Ryabinin
OR-23975 (cherry picked from commit f87fb599ae4d2a152a93f9821b94f3158146d097) Signed-off-by: Andrey Ryabinin --- kernel/exit.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/exit.c b/kernel/exit.c index 44ddc41cb6ee..659f0286096c 100644 --- a/kernel/exit.c +++ b/k

[Devel] [PATCH rh7 2/2] memcg: optimize the "Search everything else" loop in mm_update_next_owner()

2019-06-11 Thread Andrey Ryabinin
KAMEZAWA Hiroyuki Cc: Michal Hocko Cc: Peter Chiang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds https://pmc.acronis.com/browse/VSTOR-23975 (cherry picked from commit 39af1765f1255b2bbadc3064e16270781abf24a1) Signed-off-by: Andrey Ryabinin --- kernel/exit.c | 12 +--

[Devel] [PATCH rh7 11/14] fs/dcache.c: fix spin lockup issue on nlru->lock

2019-06-10 Thread Andrey Ryabinin
Torvalds (cherry picked from commit b17c070fb624cf10162cf92ea5e1ec25cd8ac176) Signed-off-by: Andrey Ryabinin --- fs/dcache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index 833f5772f616..29514f33d6bd 100644 --- a/fs/dcache.c +++ b/fs/dcach

[Devel] [PATCH rh7 14/14] fix inode leaks on d_splice_alias() failure exits

2019-06-10 Thread Andrey Ryabinin
mit 51486b900ee92856b977eacfc5bfbe6565028070) Signed-off-by: Andrey Ryabinin --- fs/dcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/dcache.c b/fs/dcache.c index a1be93d7101d..7c39b6a0c190 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2830,11 +2830,13 @@ struct dentry *d_splice_al

[Devel] [PATCH rh7 05/14] dcache: close d_move race in d_splice_alias

2019-06-10 Thread Andrey Ryabinin
arent directory. Instead copy the logic of d_materialise_unique. Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro (cherry picked from commit 75a2352d0110960aeee1a28ddc09a55f97c99100) Signed-off-by: Andrey Ryabinin --- fs/dcache.c | 7 ++- 1 file change

[Devel] [PATCH rh7 13/14] dcache: d_splice_alias should detect loops

2019-06-10 Thread Andrey Ryabinin
From: "J. Bruce Fields" I believe this can only happen in the case of a corrupted filesystem. So -EIO looks like the appropriate error. Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro (cherry picked from commit 95ad5c291313b66a98a44dc92b57e0b37c1dd589) Signed-off-by: Andre

[Devel] [PATCH rh7 03/14] dcache: don't clear DCACHE_DISCONNECTED too early

2019-06-10 Thread Andrey Ryabinin
lesystems. Acked-by: Christoph Hellwig Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro (cherry picked from commit f80de2cde10350b8d146e375ff8b634e72e6a827) Signed-off-by: Andrey Ryabinin --- fs/dcache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/dcache.c b/fs/dcache.

[Devel] [PATCH rh7 01/14] dcache: use IS_ROOT to decide where dentry is hashed

2019-06-10 Thread Andrey Ryabinin
by: Christoph Hellwig Reviewed-by: NeilBrown Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro (cherry picked from commit 7632e465feb182cadc3c9aa1282a057201818a8c) Signed-off-by: Andrey Ryabinin --- fs/dcache.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/d

[Devel] [PATCH rh7 09/14] root dentries need RCU-delayed freeing

2019-06-10 Thread Andrey Ryabinin
s the entire filesystem, we get trouble. Fixes: 48a066e72d97 ("RCU'd vsfmounts") Cc: sta...@vger.kernel.org Signed-off-by: Al Viro (cherry picked from commit 90bad5e05bcdb0308cfa3d3a60f5c0b9c8e2efb3) Signed-off-by: Andrey Ryabinin --- fs/dcache.c | 6 -- 1 file changed, 4 insert

[Devel] [PATCH rh7 12/14] fs/dcache: Fix incorrect nr_dentry_unused accounting in shrink_dcache_sb()

2019-06-10 Thread Andrey Ryabinin
From: Waiman Long The nr_dentry_unused per-cpu counter tracks dentries in both the LRU lists and the shrink lists where the DCACHE_LRU_LIST bit is set. The shrink_dcache_sb() function moves dentries from the LRU list to a shrink list and subtracts the dentry count from nr_dentry_unused. This is

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