Skip to content

Commit

Permalink
mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
Browse files Browse the repository at this point in the history
Fixes: 701d678 ("mm/zsmalloc.c: fix race condition in zs_destroy_pool")
Link: http://lkml.kernel.org/r/201908251039.5oSbEEUT%[email protected]
Reported-by: kbuild test robot <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Henry Burns <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Jonathan Adams <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Aug 31, 2019
1 parent bee07b3 commit 441e254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,9 @@ struct zs_pool *zs_create_pool(const char *name)
if (!pool->name)
goto err;

#ifdef CONFIG_COMPACTION
init_waitqueue_head(&pool->migration_wait);
#endif

if (create_cache(pool))
goto err;
Expand Down

0 comments on commit 441e254

Please sign in to comment.