diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2015-03-26 12:45:59 -0700 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-03-27 10:19:06 +1100 |
commit | e38d2ff606af30055d62f248d8a8ce1c1114427e (patch) | |
tree | 7b49ec84fb184fbd5f57afa06b32527e45f3c43c | |
parent | 643c6ffedce1de77eb4a982b8c41e7f076f4077e (diff) | |
download | linux-e38d2ff606af30055d62f248d8a8ce1c1114427e.tar.gz linux-e38d2ff606af30055d62f248d8a8ce1c1114427e.tar.xz |
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>
-rw-r--r-- | mm/zsmalloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index a9a9ff233a13..3b1512d005c9 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1716,8 +1716,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))) { |