Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp890800ybx; Thu, 31 Oct 2019 02:30:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+KFP2NtctfPzPQW1QX88Zr0oxCGB2TNOdvRWpCRajgj5A+bEZdfkJZM/+KAnrSNfZeUgf X-Received: by 2002:a17:906:bceb:: with SMTP id op11mr2874845ejb.197.1572514243960; Thu, 31 Oct 2019 02:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572514243; cv=none; d=google.com; s=arc-20160816; b=J96Bd4nLCgBr+tiiu0LxpLsJyHd0mhroaXhZcPFHMpx0IlFWALYXRXzQ5INZxHMTFu JFULEoDqlNhkidDqOT1FQLJTYDNdKAPY8IvxE40ESXkopzPf1V1ywhiTbcX9IG2hpqg/ L127/ZsjSZhMAS39L04XRLF/BHeDbMHPqn4VSUq84sHloyySSugLezjOEg73LZ0GlMRh PWmAEB8PgnNKeJD5L96wziHyujqHHuHoEqzds/tK8t5l6aVfSkui1lOqSNuAwQUWrATU +UZ5G8KSBDHiC27N4mcIDdyXZ/sLMwrE/TM6nA+seNLEvk7w8fAySRcn69T39oZUU/xz R3Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YXs5QeZnGIznWICldMTNIJv0SOtSjTNPOiPabZOr2/E=; b=HfRmIhdd52ZIrALfV5p74knSOa4LjnYvbR3irqC0FHlPf0EIrWpXYx1xLPyj+yWyZt 00LAcRtYzgwaHNkiEq0dBXUxsiLCimaw9zZ+6YcxQ8YeWjhy01gPWJfYYDKTlWraVfYA I9DHNmKtR3HhSxY3PTzaL0iovYEGBqPTzY2XxF1+1Rmfus2/2Cudg13IC2vMpnGqKNsw P/sewZGJLXIzrVTCLqiMg9eMoJhJ2rIAj4m0V31U1DVHYCiCrJS6AiXL0Q6IqoZH25S6 iGYQ8Su9p4ho9a9mkAKM3cLfi8o2w0Ut5+QDOnopCfokBNiSt8SwsiUiSTRK8inbkS7A eNsw== 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 k21si3077693ejx.384.2019.10.31.02.30.17; Thu, 31 Oct 2019 02:30:43 -0700 (PDT) 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 S1726937AbfJaJaO (ORCPT + 99 others); Thu, 31 Oct 2019 05:30:14 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51782 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726776AbfJaJaO (ORCPT ); Thu, 31 Oct 2019 05:30:14 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DFFB398FA1190C937041; Thu, 31 Oct 2019 17:30:11 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 31 Oct 2019 17:30:01 +0800 Subject: Re: [PATCH v2] ext4: bio_alloc with __GFP_DIRECT_RECLAIM never fails To: Gao Xiang , Theodore Ts'o , "Andreas Dilger" CC: , , "Ritesh Harjani" References: <20191030161244.GB3953@hsiangkao-HP-ZHAN-66-Pro-G1> <20191031092315.139267-1-gaoxiang25@huawei.com> From: Chao Yu Message-ID: <5f46684a-a435-1e15-0054-b708edfce487@huawei.com> Date: Thu, 31 Oct 2019 17:29:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20191031092315.139267-1-gaoxiang25@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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,