From 1b8fc4931702963e3b2cebd5711556c0c41311e1 Mon Sep 17 00:00:00 2001 From: Sergey Senozhatsky Date: Wed, 15 Apr 2015 16:16:24 -0700 Subject: [PATCH] UPSTREAM: zsmalloc: remove extra cond_resched() in __zs_compact (cherry-pick from commit 160a117f0864871ae1bab26554a985a1d2861afd) Do not perform cond_resched() before the busy compaction loop in __zs_compact(), because this loop does it when needed. Bug: 25951511 Change-Id: I3b20b46f3a4fb44a2bf6ccb17264acf30deb7111 Signed-off-by: Sergey Senozhatsky Acked-by: Minchan Kim Cc: Nitin Gupta Cc: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/zsmalloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 2ae35677d80..4c5568a1647 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1712,8 +1712,6 @@ static unsigned long __zs_compact(struct zs_pool *pool, struct page *dst_page = NULL; unsigned long nr_total_migrated = 0; - cond_resched(); - spin_lock(&class->lock); while ((src_page = isolate_source_page(class))) {