From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 4/5] block: simplify queue allocation Date: Fri, 27 Mar 2020 12:21:31 +0100 Message-ID: <20200327112131.GA1096@lst.de> References: <20200327083012.1618778-1-hch@lst.de> <20200327083012.1618778-5-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-block-owner@vger.kernel.org To: Johannes Thumshirn Cc: Christoph Hellwig , Jens Axboe , "linux-bcache@vger.kernel.org" , "linux-block@vger.kernel.org" List-Id: linux-bcache@vger.kernel.org On Fri, Mar 27, 2020 at 10:11:08AM +0000, Johannes Thumshirn wrote: > On 27/03/2020 09:34, Christoph Hellwig wrote: > > -struct request_queue *blk_alloc_queue(gfp_t gfp_mask) > > -{ > > - return blk_alloc_queue_node(gfp_mask, NUMA_NO_NODE); > > -} > > -EXPORT_SYMBOL(blk_alloc_queue); > > Why are you removing the non _node() variant? The memory allocation > function for instance have this indirection as well and I don't think it > simplifies a lot passing NUMA_NO_NODE in each block driver. Because the two variants are rather pointless. And this might get more people to actually pass a useful node ID instead of copy and pasting some old example code.