summaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2015-04-16 01:16:24 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-16 01:35:22 +0200
commit160a117f0864871ae1bab26554a985a1d2861afd (patch)
tree5412c8f5076f742f724b68ff1007e1b1d296feec /mm/zsmalloc.c
parentzsmalloc: fix fatal corruption due to wrong size class selection (diff)
downloadlinux-160a117f0864871ae1bab26554a985a1d2861afd.tar.xz
linux-160a117f0864871ae1bab26554a985a1d2861afd.zip
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/zsmalloc.c')
-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,
struct page *dst_page = NULL;
unsigned long nr_total_migrated = 0;
- cond_resched();
-
spin_lock(&class->lock);
while ((src_page = isolate_source_page(class))) {