Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1990795ybm; Thu, 23 May 2019 09:37:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuFNfJfRsPtlTybAgftVD5BlpWzN21Cmptre7lS3x74uCbXeZuiXPgFznhK3DE3+wcby3s X-Received: by 2002:a63:6fce:: with SMTP id k197mr100029320pgc.140.1558629448728; Thu, 23 May 2019 09:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558629448; cv=none; d=google.com; s=arc-20160816; b=kLRIzfz+/tNSNQFNfZtlzFjONZTtKpJGcv0QVoDuWtnZEsrxf4yRh3v6rmO1jaPFe0 6I02w6E3TfJtHfMa2LMONZ4EEXoAzAOsPfg8zC6rBk7wb5IjOLXHl6u4n0tmbRS4m3Lr kebuKNWOZj4MMcPZ/+cErGbywLNsDb/tH+AQDb8XnMmoAml4QfwOmfoJxDxcjdqx/fDW 5K4GUU7icSllVYoOtuc/YSnOpSHsiNFvrYuGCoc4cSq4nh6Mf28zoYCYyCOMwYjuhmRl L81bPpx9Kne8VyIE0ldTSn63gVCT4EOlajf/6UaBZ9Ip/TxnwdS2SPhI7sFAj+l8Fx0p rKsA== 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:dkim-signature; bh=pTqw8vVT02TTedKtNx5d/snM21V25zXZwTaJRpzHF2s=; b=QYn4LSSmi6dBRhP9E5sS+VdrnHOShIxUvkbQCuC9T4EHeHljkR+vDQdZCjbvVg1qRk lWnQBt4Gp8YaGLYXcIzK0Qi06T0Kq/Chcb5axRioLblBW8c1p0bMjQO3i+hGxmFCqn1b ldm3VqWZ3jzsLfK3dMng3JiXkGhkkzyVnR4PZbLhKXsGjZJbrsLHxQJf1QZEojAj8jYu nsbUT8ywfPTxpkfSNbqnG5XZFsW5FJHTYZdyyOJFU+pBJ0MjsjlI0+3iKEQ8HuFfFm84 /248ISQ+pJOtREAZXHySqgqybPXBpYviljXoPD7M8hT00ENr8AvtURwdWPZ+VPcQ1M1a 2Q+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NfRr1sg+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k189si12102736pgd.96.2019.05.23.09.37.12; Thu, 23 May 2019 09:37:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NfRr1sg+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731207AbfEWQfz (ORCPT + 99 others); Thu, 23 May 2019 12:35:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57060 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730752AbfEWQfz (ORCPT ); Thu, 23 May 2019 12:35:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pTqw8vVT02TTedKtNx5d/snM21V25zXZwTaJRpzHF2s=; b=NfRr1sg+JCx7yTC0Y1pf6Ia/1 Jj1Q2JKIqRmnEF8uOXpqDpnr9jnvpqyQBNSvVaYyiHaVfePwCfQ0tbLKI4O2cMdcBLvDzvrte+2cX 1Ly+5JK/e9hbhNJbBJND96QDqY8TGO8OwTWGUrJF1N3V3YCU6jDgEx7HfhN+62O+StZI9eZfbaiEK mOxv1UxoWRRwqCOo3fLHC/klxOsWZN6BIyCzN2XJsws5lMcg06NHOBzxQvEFf9idGdYnR3B3EO+AW M523UGnpBClzSFsxc9+IrD/MOXokNRCGk9ezwriiL9ixjGlj/s3dDot/vgK2nXpf5NgXjUxy43LCg HgQHp8E6Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTqh3-0004Ox-JP; Thu, 23 May 2019 16:35:49 +0000 Date: Thu, 23 May 2019 09:35:49 -0700 From: Christoph Hellwig To: Oliver Neukum Cc: Christoph Hellwig , Jaewon Kim , linux-mm@kvack.org, gregkh@linuxfoundation.org, Jaewon Kim , m.szyprowski@samsung.com, ytk.lee@samsung.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation Message-ID: <20190523163549.GA8692@infradead.org> References: <20190520055657.GA31866@infradead.org> <1558614729.3994.5.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1558614729.3994.5.camel@suse.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 02:32:09PM +0200, Oliver Neukum wrote: > > Please switch to use memalloc_noio_save() instead. > > Thinking about this again, we have a problem. We introduced > memalloc_noio_save() in 3.10 . Hence the code should have been > correct in v4.14. Which means that either > 6518202970c1 "(mm/cma: remove unsupported gfp_mask > parameter from cma_alloc()" > is buggy, or the original issue with a delay of 2 seconds > still exist. > > Do we need to do something? cma_alloc calls into alloc_contig_range to do the actual allocation, which then calls current_gfp_context() to pick up the adjustments from memalloc_noio_save and friends. So at least in current mainline we should be fine.