[Devel] [PATCH RHEL7 COMMIT] Revert "ve/vmscan: do not throttle kthreads due to too_many_isolated"

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jun 27 04:39:41 PDT 2016


The commit is pushed to "branch-rh7-3.10.0-327.18.2.vz7.14.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.18.2.vz7.14.21
------>
commit eee0914a0a63a3faa9eb391674fe57bc6689ac54
Author: Vladimir Davydov <vdavydov at virtuozzo.com>
Date:   Mon Jun 27 15:39:41 2016 +0400

    Revert "ve/vmscan: do not throttle kthreads due to too_many_isolated"
    
    This reverts commit 5ce7561a6b0a517fcf4fbcd8a1b00dab0ddd4222.
    
    Not needed any longer as the previous patch fixed the issue in a
    different way.
    
    Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 mm/vmscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 3ac08dd..06ff697 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1415,7 +1415,7 @@ static int __too_many_isolated(struct zone *zone, int file,
 static int too_many_isolated(struct zone *zone, int file,
 			     struct scan_control *sc)
 {
-	if (current->flags & PF_KTHREAD)
+	if (current_is_kswapd())
 		return 0;
 
 	if (!global_reclaim(sc))


More information about the Devel mailing list