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
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 |
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
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:
.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
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 +++--
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
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
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
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.
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(+
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
.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
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
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
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 +-
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
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
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/
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|
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.
>>
>>
-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
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 ++
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.
>>
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
-
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
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
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 +++--
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
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
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
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
"")
> 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
"")
> 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/
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
-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
.
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
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
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
+++
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
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
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
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,
/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
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
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
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 --
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
-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
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
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
.
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
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
://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
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
/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
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
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
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
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
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
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/
; 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
__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
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
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
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
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
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
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
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
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
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
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
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
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
++
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
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 +
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
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(
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
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(-)
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
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
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
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 |
/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
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
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
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
---
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
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 +--
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
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
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
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
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.
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
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
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
201 - 300 of 1031 matches
Mail list logo