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

Vladimir Davydov vdavydov at virtuozzo.com
Mon Jun 27 03:34:06 PDT 2016


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 3ac08ddf50b8..06ff6972ef22 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))
-- 
2.1.4



More information about the Devel mailing list