The patch titled Subject: zsmalloc-require-gfp-in-zs_malloc-v2 has been removed from the -mm tree. Its filename was zsmalloc-require-gfp-in-zs_malloc-v2.patch This patch was dropped because it was folded into zsmalloc-require-gfp-in-zs_malloc.patch ------------------------------------------------------ From: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> Subject: zsmalloc-require-gfp-in-zs_malloc-v2 Pass GFP flags to zs_malloc() instead of using a fixed mask supplied to zs_create_pool(), so we can be more flexible, but, more importantly, we need this to switch zram to per-cpu compression streams -- zram will try to allocate handle with preemption disabled in a fast path and switch to a slow path (using different gfp mask) if the fast one has failed. Apart from that, this also align zs_malloc() interface with zspool/zbud. Link: http://lkml.kernel.org/r/20160429150942.GA637@swordfish Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> Acked-by: Minchan Kim <minchan@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/block/zram/zram_drv.c | 2 +- include/linux/zsmalloc.h | 2 +- mm/zsmalloc.c | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff -puN drivers/block/zram/zram_drv.c~zsmalloc-require-gfp-in-zs_malloc-v2 drivers/block/zram/zram_drv.c --- a/drivers/block/zram/zram_drv.c~zsmalloc-require-gfp-in-zs_malloc-v2 +++ a/drivers/block/zram/zram_drv.c @@ -514,7 +514,7 @@ static struct zram_meta *zram_meta_alloc goto out_error; } - meta->mem_pool = zs_create_pool(pool_name, GFP_NOIO | __GFP_HIGHMEM); + meta->mem_pool = zs_create_pool(pool_name); if (!meta->mem_pool) { pr_err("Error creating memory pool\n"); goto out_error; diff -puN include/linux/zsmalloc.h~zsmalloc-require-gfp-in-zs_malloc-v2 include/linux/zsmalloc.h --- a/include/linux/zsmalloc.h~zsmalloc-require-gfp-in-zs_malloc-v2 +++ a/include/linux/zsmalloc.h @@ -41,7 +41,7 @@ struct zs_pool_stats { struct zs_pool; -struct zs_pool *zs_create_pool(const char *name, gfp_t flags); +struct zs_pool *zs_create_pool(const char *name); void zs_destroy_pool(struct zs_pool *pool); unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags); diff -puN mm/zsmalloc.c~zsmalloc-require-gfp-in-zs_malloc-v2 mm/zsmalloc.c --- a/mm/zsmalloc.c~zsmalloc-require-gfp-in-zs_malloc-v2 +++ a/mm/zsmalloc.c @@ -323,7 +323,12 @@ static void *zs_zpool_create(const char const struct zpool_ops *zpool_ops, struct zpool *zpool) { - return zs_create_pool(name, gfp); + /* + * Ignore global gfp flags: zs_malloc() may be invoked from + * different contexts and its caller must provide a valid + * gfp mask. + */ + return zs_create_pool(name); } static void zs_zpool_destroy(void *pool) @@ -1877,7 +1882,7 @@ static int zs_register_shrinker(struct z * On success, a pointer to the newly created pool is returned, * otherwise NULL. */ -struct zs_pool *zs_create_pool(const char *name, gfp_t flags) +struct zs_pool *zs_create_pool(const char *name) { int i; struct zs_pool *pool; _ Patches currently in -mm which might be from sergey.senozhatsky@xxxxxxxxx are zsmalloc-require-gfp-in-zs_malloc.patch zram-user-per-cpu-compression-streams.patch zram-user-per-cpu-compression-streams-fix.patch zram-remove-max_comp_streams-internals.patch zram-introduce-per-device-debug_stat-sysfs-node.patch zram-introduce-per-device-debug_stat-sysfs-node-update-2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html