aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2015-04-15 19:16:24 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:35:22 -0400
commit160a117f0864871ae1bab26554a985a1d2861afd (patch)
tree5412c8f5076f742f724b68ff1007e1b1d296feec /mm
parent81da9b13f73653bf5f38c63af8029fc459198ac0 (diff)
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/zsmalloc.c2
1 files changed, 0 insertions, 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,
1711 struct page *dst_page = NULL; 1711 struct page *dst_page = NULL;
1712 unsigned long nr_total_migrated = 0; 1712 unsigned long nr_total_migrated = 0;
1713 1713
1714 cond_resched();
1715
1716 spin_lock(&class->lock); 1714 spin_lock(&class->lock);
1717 while ((src_page = isolate_source_page(class))) { 1715 while ((src_page = isolate_source_page(class))) {
1718 1716