Browse Source

zsmalloc: remove extra cond_resched() in __zs_compact

Do not perform cond_resched() before the busy compaction loop in
__zs_compact(), because this loop does it when needed.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Sergey Senozhatsky 10 years ago
parent
commit
160a117f08
1 changed files with 0 additions and 2 deletions
  1. 0 2
      mm/zsmalloc.c

+ 0 - 2
mm/zsmalloc.c

@@ -1711,8 +1711,6 @@ static unsigned long __zs_compact(struct zs_pool *pool,
 	struct page *dst_page = NULL;
 	struct page *dst_page = NULL;
 	unsigned long nr_total_migrated = 0;
 	unsigned long nr_total_migrated = 0;
 
 
-	cond_resched();
-
 	spin_lock(&class->lock);
 	spin_lock(&class->lock);
 	while ((src_page = isolate_source_page(class))) {
 	while ((src_page = isolate_source_page(class))) {