Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 160a117f authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Linus Torvalds
Browse files

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: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: default avatarMinchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 81da9b13
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -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))) {