The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at 
https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.13
------>
commit 462e5237813c1475bcf23ca241d510ba0e9150ac
Author: Konstantin Khorenko <khore...@virtuozzo.com>
Date:   Wed Oct 20 19:39:48 2021 +0300

    Revert "mm: make task with TIF_MEMDIE die faster"
    
    This reverts commit 08fd0e7cffa51b923008d6a79f38326db27ec624.
    
    The patch being reverted originally was related to the soft lockup
    described in https://jira.sw.ru/browse/PSBM-27508.
    
    i heavily dount mm still needs this crunch from the year 2014, so let's
    remove it.
    
    https://jira.sw.ru/browse/PSBM-134053
    
    Signed-off-by: Konstantin Khorenko <khore...@virtuozzo.com>
---
 mm/vmscan.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index ef4ba8b5b099..5a0b83b8ab8e 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -976,9 +976,6 @@ static unsigned long shrink_slab(gfp_t gfp_mask, int nid,
        if (!mem_cgroup_disabled() && !mem_cgroup_is_root(memcg))
                return shrink_slab_memcg(gfp_mask, nid, memcg, priority);
 
-       if (unlikely(test_tsk_thread_flag(current, TIF_MEMDIE)))
-               return 0;
-
        if (!down_read_trylock(&shrinker_rwsem))
                goto out;
 
@@ -3340,9 +3337,6 @@ static void shrink_zones(struct zonelist *zonelist, 
struct scan_control *sc)
                        continue;
                last_pgdat = zone->zone_pgdat;
                shrink_node(zone->zone_pgdat, sc);
-
-               if (unlikely(test_tsk_thread_flag(current, TIF_MEMDIE)))
-                       break;
        }
 
        /*
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to