projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee07b3
)
mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
author
Andrew Morton
<akpm@linux-foundation.org>
Fri, 30 Aug 2019 23:04:35 +0000
(16:04 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 31 Aug 2019 01:00:50 +0000
(18:00 -0700)
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>
mm/zsmalloc.c
patch
|
blob
|
history
diff --git
a/mm/zsmalloc.c
b/mm/zsmalloc.c
index 08def3a0d2007c3030384e4cd4d04f83b5ac7c74..e98bb6ab4f7e76c8b3f6d29c165b43fd6a6da964 100644
(file)
--- a/
mm/zsmalloc.c
+++ b/
mm/zsmalloc.c
@@
-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;