mm-vmscan-fix-memcg-aware-shrinkers-not-called-on-global-reclaim.patch removed from -mm tree
The patch titled
Subject: mm: vmscan: fix memcg-aware shrinkers not called on global reclaim
has been removed from the -mm tree. Its filename was
mm-vmscan-fix-memcg-aware-shrinkers-not-called-on-global-reclaim.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Vladimir Davydov <[email protected]>
Subject: mm: vmscan: fix memcg-aware shrinkers not called on global reclaim
We must call shrink_slab() for each memory cgroup on both global and memcg reclaim in shrink_node_memcg(). Commit d71df22b55099 accidentally changed that so that now shrink_slab() is only called with memcg != NULL on memcg reclaim. As a result, memcg-aware shrinkers (including dentry/inode) are never invoked on global reclaim. Fix that.
---
mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-fix-memcg-aware-shrinkers-not-called-on-global-reclaim +1 -1
@@ -2561,7 +2561,7 @@ static bool shrink_node(pg_data_t *pgdatshrink_node_memcg (pgdat, memcg, sc, &lru_pages); node_lru_pages += lru_pages; -if (!global_reclaim (sc)) +if (memcg)shrink_slab (sc->gfp_mask, pgdat->node_id, memcg, sc->nr_scanned - scanned, lru_pages);
_
Patches currently in -mm which might be from [email protected] are
mm-memcontrol-fix-swap-counter-leak-on-swapout-from-offline-cgroup.patch mm-memcontrol-fix-memcg-id-ref-counter-on-swap-charge-move.patch mm-memcontrol-add-sanity-checks-for-memcg-idref-on-get-put.patch mm-oom-deduplicate-victim-selection-code-for-memcg-and-global-oom.patch