Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6383780ybe; Wed, 18 Sep 2019 02:33:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0I5OSovQx6kC5mgMUAimT81bRmXO0PyEB9BT5eH/NkvUlcKerfgKdSpsYMiwOvovrNQeO X-Received: by 2002:a17:907:2124:: with SMTP id qo4mr8349987ejb.311.1568799202142; Wed, 18 Sep 2019 02:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568799202; cv=none; d=google.com; s=arc-20160816; b=eHdOoHHulK52QkmJfJMO4sYWcDT1GyC/wPD/ymur58lYX+svcY7oqIY+6QFgysfZRl tNhziGgIZMhnHEmcXxZ6lQErytOY3frgidMW1KSNbIQT53PQrXKkkbDXK7l2XWAu9SlH CtYOfkyRDj9VUVFDlUx/QoW1QmHG8tTlj6kGySpaGfZz9nUJ8vqsXkxxd8O3k/v9p2+U ljXGdVt+iSK8+PFmsEDK6JjbaZtMbDZEQFVd4aP8Gf5anzdGiaKjDPWVDxfDS0kt7HRR W+rs2U48imMegtfBHqYsvuyBXGWFrnGO5gBJmVlMeDey+6vmSbe5zPbJS6gdDxjiheGB AJXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=oMddFdhNp9hChwXK/KKOeNT+DOsrakAnjtraEAcsxOw=; b=LPG876plbSTeQtcAEnyqt2Vp//RSbTXz+qyk375pOVHr5KabUyaWRmgvhdc+B48zsw 5zvfkh/HpwRWPfcDBJSa1Cg/IlC2dT7tsbWfkV0FAESC2om6ty/rUGDQb6M91ySkU5I1 6rrBld3DX5qJcMph9vBZYFQsbQzARKqlSRMssCEKwpgFlXKpe1y3FuFamqmYh9VgQxLx 3B71MdN1POGz/jVgzEnomRuOMGL3hspl2RG1OxkyAqnkQVIbOCvjVUZBjyXdK0bDSbE3 zt3PREUD3soSIe87QtQds/uk60E/IsQdPGHSoawWZvufNNuNZcd2sipnfBAxRU36jI4G iHBQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si2480003ejm.8.2019.09.18.02.32.58; Wed, 18 Sep 2019 02:33:22 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729974AbfIRIRO (ORCPT + 99 others); Wed, 18 Sep 2019 04:17:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36256 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729745AbfIRIRO (ORCPT ); Wed, 18 Sep 2019 04:17:14 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 03AD030A76A9; Wed, 18 Sep 2019 08:17:14 +0000 (UTC) Received: from [10.72.12.58] (ovpn-12-58.pek2.redhat.com [10.72.12.58]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C9925C21A; Wed, 18 Sep 2019 08:17:11 +0000 (UTC) Subject: Re: [RFC PATCH] memalloc_noio: update the comment to make it cleaner To: Michal Hocko Cc: mingo@redhat.com, peterz@infradead.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org References: <20190917232820.23504-1-xiubli@redhat.com> <20190918072542.GC12770@dhcp22.suse.cz> <315246db-ec28-f5e0-e9b3-eba0cb60b796@redhat.com> <20190918081431.GD12770@dhcp22.suse.cz> From: Xiubo Li Message-ID: Date: Wed, 18 Sep 2019 16:17:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20190918081431.GD12770@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 18 Sep 2019 08:17:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/18 16:14, Michal Hocko wrote: > On Wed 18-09-19 16:02:52, Xiubo Li wrote: >> On 2019/9/18 15:25, Michal Hocko wrote: >>> On Wed 18-09-19 04:58:20, xiubli@redhat.com wrote: >>>> From: Xiubo Li >>>> >>>> The GFP_NOIO means all further allocations will implicitly drop >>>> both __GFP_IO and __GFP_FS flags and so they are safe for both the >>>> IO critical section and the the critical section from the allocation >>>> recursion point of view. Not only the __GFP_IO, which a bit confusing >>>> when reading the code or using the save/restore pair. >>> Historically GFP_NOIO has always implied GFP_NOFS as well. I can imagine >>> that this might come as an surprise for somebody not familiar with the >>> code though. >> Yeah, it true. >> >>> I am wondering whether your update of the documentation >>> would be better off at __GFP_FS, __GFP_IO resp. GFP_NOFS, GFP_NOIO level. >>> This interface is simply a way to set a scoped NO{IO,FS} context. >> The "Documentation/core-api/gfp_mask-from-fs-io.rst" is already very detail >> about them all. >> >> This fixing just means to make sure that it won't surprise someone who is >> having a quickly through some code and not familiar much about the detail. >> It may make not much sense ? > Ohh, I do not think this would be senseless. I just think that the NOIO > implying NOFS as well should be described at the level where they are > documented rather than the api you have chosen. Hmm, yeah totally agree :-) Thanks BRs