Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp309577ybt; Thu, 9 Jul 2020 23:52:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHIaOqJYvRxRZeS+RGVuWLyGiRvUsMVhSsOFPp0qa0CK+2OC7uUDXbOH85xg0qzuXwJN+Z X-Received: by 2002:a17:906:8157:: with SMTP id z23mr38483258ejw.349.1594363921535; Thu, 09 Jul 2020 23:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594363921; cv=none; d=google.com; s=arc-20160816; b=UFfh/QfyrFj/araRK5XvwQ5+VGqByr7DFAq9v5XZrViUO+39Cii7zZ0Fu0lg/yxX1J 8JpLwsMd1Bmof7xDsivl/ksn7r1TFm4kVjqnqaPCAv9ccX5/YQ+eebm/phqe/2unfNYG 1k7vKkiPkgY1P0lV4R+ZiOB8ClLQJ9brky2vr7iEs1KzdxLV7QI7vgX+JzWLN/1D3LGl OeenbJ82c6SLBijlrJjUGa/bqDNQZY3TxsXc07TTmHd4pnpBIXbMgOA7gLOhuhJggjao rD6vWvNfUdLVOEWZ6z65pfZICqtj/OwZNqeYP5CJ0hMhUfibCtPgPIzi8qc95BrZzcBm C8og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C2h2ad2V1XLUl+3L2e094OYecFreetrscx7keKx+mSw=; b=pNYV8D2BVUoW2aZ3dNNVSVCqcZkPdsIDog3M15jR8WEWRc0h3vw6fVGMv8LJMlpZRR 0BZVXb3AM3Po9Hl6KspMb2nE+WLaj1rkLST0fbnV07mzrXCNNKAeSQ9kOg62R5UeZbCX W4e0sy3RsPVtvp7gg+1r9mUnXOKjs64VufX/lBhCs04sHLcGvrmuYL7fiVSo4z+Z+VsF 63XSqC+2QsedzNGpFZof2k+/I6pTbIrG1eWZ5R905L0PX9LU4ekz8siyP69+p3DfVsoM hEv6L/cy+5OsxJZQufhkzXsnvLr6lCGsr+lW9QNrfbIy1EosDubPQzq/1oPw/dCOVWwP hYfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k27si3300665ejs.676.2020.07.09.23.51.38; Thu, 09 Jul 2020 23:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726773AbgGJGu7 (ORCPT + 99 others); Fri, 10 Jul 2020 02:50:59 -0400 Received: from verein.lst.de ([213.95.11.211]:42097 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgGJGu7 (ORCPT ); Fri, 10 Jul 2020 02:50:59 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 1999E68BEB; Fri, 10 Jul 2020 08:50:55 +0200 (CEST) Date: Fri, 10 Jul 2020 08:50:54 +0200 From: Christoph Hellwig To: David Rientjes Cc: Nicolas Saenz Julienne , hch@lst.de, Robin Murphy , iommu@lists.linux-foundation.org, Marek Szyprowski , linux-rpi-kernel@lists.infradead.org, jeremy.linton@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] dma-pool: Get rid of dma_in_atomic_pool() Message-ID: <20200710065054.GA19416@lst.de> References: <20200709161903.26229-1-nsaenzjulienne@suse.de> <20200709161903.26229-3-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 09, 2020 at 02:51:13PM -0700, David Rientjes wrote: > On Thu, 9 Jul 2020, Nicolas Saenz Julienne wrote: > > > The function is only used once and can be simplified to a one-liner. > > > > Signed-off-by: Nicolas Saenz Julienne > > I'll leave this one to Christoph to decide on. One thing I really liked > about hacking around in kernel/dma is the coding style, it really follows > "one function does one thing and does it well" even if there is only one > caller. dma_in_atomic_pool() was an attempt to follow in those footsteps. While I like the helper aswell, I don't see how it could work nicely with the changes in patch 4.