Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4004342ybc; Thu, 14 Nov 2019 19:21:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwm7kpM2sBi/kyqnqInERmC7Nt0u/B7di2UK75ujfkj+w7ifl0Z3KEmRdMqFkAyAeJHliTJ X-Received: by 2002:a17:906:a3cc:: with SMTP id ca12mr10542687ejb.302.1573788072648; Thu, 14 Nov 2019 19:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573788072; cv=none; d=google.com; s=arc-20160816; b=llm9KZaBgnRcYCG8W/aTC+2mEfRMffi1xn3a7tVj75DgFnH6dGnXadIwURc+LYddn/ qfnHYvcS0wW9xjnzRRIluPrwWxAqQEpy23bomhr/pYkGR3JLRcVaYutGAh0HF3ucrZcQ jMqi7Gp85D462kTENGMYkrlkeh2wFBjRZmfZVpYzTTrbcDKxQMOsEJWpw2JYWBwVABu0 C1dJ24CbUBCbH1XILHhNZ269RdsWjh2rokfLpj2ss4JvjulFBT39z8jiGzrRr5Dq04fy tyT2+kKC+4WNW+DIEJBVnlhkYuKnPUhbafKK/90KReTRrpGTD8YQywUjpra1fmlIKjGu h1AQ== 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=3nVETL+h15Cti2h8ZUWqybXqlccor5Sxg4t7yu6TMc0=; b=gBo4VAmaIKxo4CyeTYTtEwOFerjZUX+xjWJcZhR6stx4yizujlrmv7Hh8Gbs+brwM1 JRKjYr1ZyaGwu4VEzRxN4i/8Mi2+TFCY+OXir9L7SN1V/GU7Sp/JOBkjKZIO1z71rbgi HHHsKKoX1JWI1HhRzO6QNhsKCbwfQW7I3HnOXXVlCO9ifhqaZ3dL9BqHpp0oZY1YAAWz MhvglQSdMcA+TpD8CtEzucfJYZi+tY3EmtjsG80rUuozHxGgzufobA6/oU2h9D/cv5Gp PSYRTB0BFnnvotm1P30F+fGTqqFrDGgbfwC4bOFvbWQWeSXHljkczbJi+SqYtqc7/v6T KC9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 cc20si5427321edb.201.2019.11.14.19.20.43; Thu, 14 Nov 2019 19:21:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfKODUP (ORCPT + 99 others); Thu, 14 Nov 2019 22:20:15 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:49538 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727065AbfKODUP (ORCPT ); Thu, 14 Nov 2019 22:20:15 -0500 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id xAF3Jruj001765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Nov 2019 22:19:54 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 4F94B4202FD; Thu, 14 Nov 2019 22:19:53 -0500 (EST) Date: Thu, 14 Nov 2019 22:19:53 -0500 From: "Theodore Y. Ts'o" To: Chao Yu Cc: Gao Xiang , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Ritesh Harjani Subject: Re: [PATCH v2] ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails Message-ID: <20191115031953.GA30252@mit.edu> References: <20191030161244.GB3953@hsiangkao-HP-ZHAN-66-Pro-G1> <20191031092315.139267-1-gaoxiang25@huawei.com> <5f46684a-a435-1e15-0054-b708edfce487@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f46684a-a435-1e15-0054-b708edfce487@huawei.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Oct 31, 2019 at 05:29:58PM +0800, Chao Yu wrote: > On 2019/10/31 17:23, Gao Xiang wrote: > > Similar to [1] [2], bio_alloc with __GFP_DIRECT_RECLAIM flags > > guarantees bio allocation under some given restrictions, as > > stated in block/bio.c and fs/direct-io.c So here it's ok to > > not check for NULL value from bio_alloc(). > > > > [1] https://lore.kernel.org/r/20191030035518.65477-1-gaoxiang25@huawei.com > > [2] https://lore.kernel.org/r/20190830162812.GA10694@infradead.org > > Cc: Theodore Ts'o > > Cc: Andreas Dilger > > Cc: Ritesh Harjani > > Cc: Chao Yu > > Signed-off-by: Gao Xiang > > Reviewed-by: Chao Yu Thanks, applied. - Ted