This reverts commit 5ce7561a6b0a517fcf4fbcd8a1b00dab0ddd4222.

Not needed any longer as the previous patch fixed the issue in a
different way.

Signed-off-by: Vladimir Davydov <[email protected]>
---
 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

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to