Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp164374yba; Mon, 20 May 2019 06:44:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZebgUAQ/bL8RFqi15j0vw5+HGSevE0AfXOaleIzy8jHOpB6icnpIlhtsydMqryJvtXnTv X-Received: by 2002:aa7:8554:: with SMTP id y20mr80416611pfn.258.1558359879404; Mon, 20 May 2019 06:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558359879; cv=none; d=google.com; s=arc-20160816; b=qe7ooQAFogcVz8yjB7SK3IwFLmAKgjoa7RZxYF7ZIBt5a6u2GXBqPPqw7/jWBj5r/b 85AU0EExMHYMQ3I+dSrAP6qUD6s8pBUGDvdhHMSXwh22dXUpK8BNIZT3UL03ePA0ls4j U5LFZq7xaMum+unqfMsVK33TOorWlpmZJhR0KAtNpK3PxqlDX0d4BkaRNH3wpus0o95t VG70dMMAx6kVbMv5jbW7q2twjHrk1bIhRcicmuJTaazCNwrD3UwjWdrHrYUIRw3iknsy Z47IZrKHSFlUuFpbtrl8HiVsddcKtlwBr8JUB/IGZQtDuNKFkrxRvRyz+a9VpJRAyUm2 EdwA== 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=MqrvqRAJlxcONvOERepJ1ia9im/zVqpqGszIN9wgOpo=; b=JM07MNjRoNsasaV7r9qd+LHiXEEgI3/flMqrH3Qh1DVXR1GH8VSA5fhlnMFhbkKY+j /EElroi/MNFzlYZyLHs2Ut+bmcd9QsXJVROeYvcU3ncn1UN6K5s3jBlesZDC8pxf2WtY rQRBjaOOYw4TqmGeIS6Mihibsrz+HcqebD08CBUvJBhh/QGXXI6YJEoKaFJFd+QYoYQY rO+0PmSJIwnu6/da8tNeM8Rqp7zt3YYejnHUWy7UfWE4CUGHzJHglnST8yShsz4KwBP/ QXiDkcWxlOLUkv+QAJ/M4LBlSbw9X3vb+SnPGl5eU1XdXc/ZwZr6Hft1ZJP/0VeXABad mvUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZU0ytO4Y; 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 g3si11812993pgq.247.2019.05.20.06.44.24; Mon, 20 May 2019 06:44:39 -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=ZU0ytO4Y; 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 S1732397AbfETKMN (ORCPT + 99 others); Mon, 20 May 2019 06:12:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37150 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730468AbfETKMM (ORCPT ); Mon, 20 May 2019 06:12:12 -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=MqrvqRAJlxcONvOERepJ1ia9im/zVqpqGszIN9wgOpo=; b=ZU0ytO4YuOP96ibdGXamVHekr uBSM7cCD4CWqHQfee0lTS97z/EH61ONs+mc6CZYtOT3GX7GdQmDV3ZCOxswvcWlCdcD5tUMAKf3lO 8cpp0xOP8zB04CG4MxT6SoS91K/bYf1pOv70rCpVbLb80GTGRylJADjqzF3cgmEgHUCkxQGxvFu3x aOyZDtSq0VnBtTuwVqlvi3AyMOPs0BZtj5FOG+3gvaPGFhfapQUsk0j9OXJifHtQQuG53bi2iid/Q FTK3ijbqOwmRyAmwSPJpu/fnRPXmJu6s/sGdB6ZSVuyzXo7qkti7ONQZV6wv8/86V2mFIRECvY9P/ aujbpJYRQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hSfH4-0003eI-EN; Mon, 20 May 2019 10:12:06 +0000 Date: Mon, 20 May 2019 03:12:06 -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: <20190520101206.GA9291@infradead.org> References: <20190520055657.GA31866@infradead.org> <1558343365.12672.2.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1558343365.12672.2.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 Mon, May 20, 2019 at 11:09:25AM +0200, Oliver Neukum wrote: > we actually do. It is just higher up in the calling path: Perfect! > So, do we need to audit the mem_flags again? > What are we supposed to use? GFP_KERNEL? GFP_KERNEL if you can block, GFP_ATOMIC if you can't for a good reason, that is the allocation is from irq context or under a spinlock. If you think you have a case where you think you don't want to block, but it is not because of the above reasons we need to have a chat about the details.