From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41QW7m3BkDzDqx6 for ; Wed, 11 Jul 2018 17:35:31 +1000 (AEST) Received: by mail-wr1-x441.google.com with SMTP id c13-v6so17011271wrt.1 for ; Wed, 11 Jul 2018 00:35:31 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180710095056.GE14284@dhcp22.suse.cz> References: <20180709121956.20200-1-m.szyprowski@samsung.com> <20180709122019eucas1p2340da484acfcc932537e6014f4fd2c29~-sqTPJKij2939229392eucas1p2j@eucas1p2.samsung.com> <20180710095056.GE14284@dhcp22.suse.cz> From: Joonsoo Kim Date: Wed, 11 Jul 2018 16:35:28 +0900 Message-ID: Subject: Re: [PATCH 1/2] mm/cma: remove unsupported gfp_mask parameter from cma_alloc() To: Michal Hocko Cc: Marek Szyprowski , Linux Memory Management List , LKML , linux-arm-kernel@lists.infradead.org, linuxppc-dev , iommu@lists.linux-foundation.org, Andrew Morton , Michal Nazarewicz , Joonsoo Kim , Vlastimil Babka , Christoph Hellwig , Russell King , Catalin Marinas , Will Deacon , Paul Mackerras , Benjamin Herrenschmidt , Chris Zankel , Martin Schwidefsky , Joerg Roedel , Sumit Semwal , Robin Murphy , Laura Abbott , linaro-mm-sig@lists.linaro.org Content-Type: text/plain; charset="UTF-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 2018-07-10 18:50 GMT+09:00 Michal Hocko : > On Tue 10-07-18 16:19:32, Joonsoo Kim wrote: >> Hello, Marek. >> >> 2018-07-09 21:19 GMT+09:00 Marek Szyprowski : >> > cma_alloc() function doesn't really support gfp flags other than >> > __GFP_NOWARN, so convert gfp_mask parameter to boolean no_warn parameter. >> >> Although gfp_mask isn't used in cma_alloc() except no_warn, it can be used >> in alloc_contig_range(). For example, if passed gfp mask has no __GFP_FS, >> compaction(isolation) would work differently. Do you have considered >> such a case? > > Does any of cma_alloc users actually care about GFP_NO{FS,IO}? I don't know. My guess is that cma_alloc() is used for DMA allocation so block device would use it, too. If fs/block subsystem initiates the request for the device, it would be possible that cma_alloc() is called with such a flag. Again, I don't know much about those subsystem so I would be wrong. Thanks.