Commit 1ec7cfb1 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Linus Torvalds

zsmalloc: remove synchronize_rcu from zs_compact()

Do not synchronize rcu in zs_compact(). Neither zsmalloc not
zram use rcu.
Signed-off-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: default avatarMinchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8f7d282c
...@@ -1778,8 +1778,6 @@ unsigned long zs_compact(struct zs_pool *pool) ...@@ -1778,8 +1778,6 @@ unsigned long zs_compact(struct zs_pool *pool)
nr_migrated += __zs_compact(pool, class); nr_migrated += __zs_compact(pool, class);
} }
synchronize_rcu();
return nr_migrated; return nr_migrated;
} }
EXPORT_SYMBOL_GPL(zs_compact); EXPORT_SYMBOL_GPL(zs_compact);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment