From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx149.postini.com [74.125.245.149]) by kanga.kvack.org (Postfix) with SMTP id 630666B0005 for ; Fri, 25 Jan 2013 16:26:47 -0500 (EST) Message-ID: <5102F88F.5010303@redhat.com> Date: Fri, 25 Jan 2013 16:26:39 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCHv2 1/9] staging: zsmalloc: add gfp flags to zs_create_pool References: <1357590280-31535-1-git-send-email-sjenning@linux.vnet.ibm.com> <1357590280-31535-2-git-send-email-sjenning@linux.vnet.ibm.com> In-Reply-To: <1357590280-31535-2-git-send-email-sjenning@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Seth Jennings Cc: Greg Kroah-Hartman , Andrew Morton , Nitin Gupta , Minchan Kim , Konrad Rzeszutek Wilk , Dan Magenheimer , Robert Jennings , Jenifer Hopper , Mel Gorman , Johannes Weiner , Larry Woodman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org On 01/07/2013 03:24 PM, Seth Jennings wrote: > zs_create_pool() currently takes a gfp flags argument > that is used when growing the memory pool. However > it is not used in allocating the metadata for the pool > itself. That is currently hardcoded to GFP_KERNEL. > > zswap calls zs_create_pool() at swapon time which is done > in atomic context, resulting in a "might sleep" warning. > > This patch changes the meaning of the flags argument in > zs_create_pool() to mean the flags for the metadata allocation, > and adds a flags argument to zs_malloc that will be used for > memory pool growth if required. > > Signed-off-by: Seth Jennings Acked-by: Rik van Riel -- All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org