Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4006071ybc; Thu, 14 Nov 2019 19:23:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwycUVRAic3Pp3MD6ftFDMbiK/Kcs1xcpsLvBiu5ToPMO9kW53QuqvbwDlt0qQig0FiYrlz X-Received: by 2002:a17:906:d72:: with SMTP id s18mr10594035ejh.29.1573788229698; Thu, 14 Nov 2019 19:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573788229; cv=none; d=google.com; s=arc-20160816; b=iUKlc9bmZ6GReobUMhAq1kHMRQCO3ydaOhxmMRaO/8M7kvabB4m+iEMY7lIoOcmESf 8Z009bYp86wu55nAs59hD/pCn69c7F7Q2VTHW5w/O5FjrXo7FuaQFHV8CFSvty1+54uN sYwjbxYAVLuax1ZnlfFcFIcOCRR9mf1tN7tKdAANF6wODzfd1UztWdn5FcFtT2Lz6OAY n2hjK6diQcXf9FCp0NtkJ7fae4wxfCrV3rbIq1uXlSKl7gUARXJVVj9fExWGJdWMYKsf EKCotT0DWsqhDtFkrp1L6fbVkr6K0KN/nUeeF5eroSnkTrHF67gBOyEd2g/sy16KJkj/ o+QA== 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=JE9U6OqqBiXChh2huYbN3z0lUIf7+91d2ku++Fy1tXk=; b=l/WefV4wQP3oabNAWTW4pvTyttpR9x7lo6w1r7evu1+RMlaQPJMWHePwVvKtgMH1/h sJkaVX9ri6Fx8AhwwJwQZRDrd9jLMCDMWJS4vA6RX7EqmaYiUul2QC6Pl8iCcA6uaTac n0DJWOD2MgL2seAuwy/J4EU75aJJE9f2EM+Rl1wCnzznLkFBLdHVV8fjJm+n8t4dAGX3 80pqoBOqSB9k1FACJ/IK8TSP5EU6Uz2QwUiXLhwuqG0+ZzcjYMHqRdS49FQViHhL5Wfk 3jGnsTmoEqSGXDF8pWYKNf4+BfqsqGE3pIns5x8iZH3iPjVTQwiszj1/1WoQRPZocyTI 1wVg== ARC-Authentication-Results: i=1; mx.google.com; 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 w5si2526777edq.27.2019.11.14.19.23.24; Thu, 14 Nov 2019 19:23:49 -0800 (PST) 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; 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 S1727021AbfKODVw (ORCPT + 99 others); Thu, 14 Nov 2019 22:21:52 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:2086 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726533AbfKODVw (ORCPT ); Thu, 14 Nov 2019 22:21:52 -0500 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id 0364F1DEFC3323A7AAC6; Fri, 15 Nov 2019 11:21:48 +0800 (CST) Received: from dggeme762-chm.china.huawei.com (10.3.19.108) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 15 Nov 2019 11:21:47 +0800 Received: from architecture4 (10.140.130.215) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 15 Nov 2019 11:21:47 +0800 Date: Fri, 15 Nov 2019 11:24:16 +0800 From: Gao Xiang To: "Theodore Y. Ts'o" CC: Chao Yu , Andreas Dilger , , , Ritesh Harjani Subject: Re: [PATCH v2] ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails Message-ID: <20191115032416.GA156858@architecture4> References: <20191030161244.GB3953@hsiangkao-HP-ZHAN-66-Pro-G1> <20191031092315.139267-1-gaoxiang25@huawei.com> <5f46684a-a435-1e15-0054-b708edfce487@huawei.com> <20191115031953.GA30252@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20191115031953.GA30252@mit.edu> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme706-chm.china.huawei.com (10.1.199.102) To dggeme762-chm.china.huawei.com (10.3.19.108) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ted, On Thu, Nov 14, 2019 at 10:19:53PM -0500, Theodore Y. Ts'o wrote: > 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 Thanks for considering this. Have a nice day. Thanks, Gao Xiang