diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index c5317a7f05e9..3197de2a3896 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -2431,7 +2431,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;