[RHEL7,COMMIT] mm/vmscan: shrink slabs from offlined cgroups

Submitted by Konstantin Khorenko on April 27, 2018, 10:55 a.m.

Details

Message ID 201804271055.w3RAtAdY001032@finist_ce7.work
State New
Series "Series without cover letter"
Headers show

Commit Message

Konstantin Khorenko April 27, 2018, 10:55 a.m.
The commit is pushed to "branch-rh7-3.10.0-693.21.1.vz7.47.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.21.1.vz7.47.2
------>
commit 46060af2b759c9458cef47cd2158130a6c7bf7cc
Author: Andrey Ryabinin <aryabinin@virtuozzo.com>
Date:   Fri Apr 27 13:55:10 2018 +0300

    mm/vmscan: shrink slabs from offlined cgroups
    
    Currently shrink_slab() skips offlined cgroups during per-memcg reclaim.
    So only global reclaim can shrink slabs from offlined cgroups.
    This doesn't make any sense, we should allow reclaiming offlined
    cgroups, otherwise we can't destroy them (kmem pins memgc).
    
    https://jira.sw.ru/browse/PSBM-83628
    Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 mm/vmscan.c | 3 ---
 1 file changed, 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 4922f734cdb4..aefa4bc33062 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -395,9 +395,6 @@  static unsigned long shrink_slab(gfp_t gfp_mask, int nid,
 	struct shrinker *shrinker;
 	unsigned long freed = 0;
 
-	if (memcg && !memcg_kmem_is_active(memcg))
-		return 0;
-
 	if (unlikely(test_tsk_thread_flag(current, TIF_MEMDIE)))
 		return 0;