Skip to content

Commit

Permalink
zsmalloc: remove synchronize_rcu from zs_compact()
Browse files Browse the repository at this point in the history
Do not synchronize rcu in zs_compact(). Neither zsmalloc not
zram use rcu.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Sergey Senozhatsky authored and Linus Torvalds committed Apr 15, 2015
1 parent 8f7d282 commit 1ec7cfb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,6 @@ unsigned long zs_compact(struct zs_pool *pool)
nr_migrated += __zs_compact(pool, class);
}

synchronize_rcu();

return nr_migrated;
}
EXPORT_SYMBOL_GPL(zs_compact);
Expand Down

0 comments on commit 1ec7cfb

Please sign in to comment.