diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2019-08-30 16:04:35 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:23:34 +0200 |
commit | b4b92e95d9e5ad3e4711be1bd8b01c121d38b43a (patch) | |
tree | d39d4d96fbd57ac768cb02f8ba8e4e3bab1d4b25 /mm | |
parent | 2905d7847cd59c4e4aba72a1b6f249f62156efb8 (diff) | |
download | linux-stable-b4b92e95d9e5ad3e4711be1bd8b01c121d38b43a.tar.gz linux-stable-b4b92e95d9e5ad3e4711be1bd8b01c121d38b43a.tar.bz2 linux-stable-b4b92e95d9e5ad3e4711be1bd8b01c121d38b43a.zip |
mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
commit 441e254cd40dc03beec3c650ce6ce6074bc6517f upstream.
Fixes: 701d678599d0c1 ("mm/zsmalloc.c: fix race condition in zs_destroy_pool")
Link: http://lkml.kernel.org/r/201908251039.5oSbEEUT%25lkp@intel.com
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Henry Burns <henrywolfeburns@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Jonathan Adams <jwadams@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/zsmalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 515b00801af2..7d62ef2daf83 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -2432,7 +2432,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; |