From 160a117f0864871ae1bab26554a985a1d2861afd Mon Sep 17 00:00:00 2001 From: Sergey Senozhatsky Date: Wed, 15 Apr 2015 16:16:24 -0700 Subject: [PATCH] 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 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 e24f7ccc5865..08bd7a3d464a 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1711,8 +1711,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))) { -- 2.34.1