Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp765060ybb; Wed, 1 Apr 2020 09:12:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLwLsTo+MQEXnLHs5vxsTtdpnvMLZj2C0w3KggAHKk4KBNhDqbgxxuIV1ej4de784y9Dmcl X-Received: by 2002:aca:b245:: with SMTP id b66mr3407206oif.170.1585757561772; Wed, 01 Apr 2020 09:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585757561; cv=none; d=google.com; s=arc-20160816; b=TbQaHhfpGYUyBveP6C+5hVzJ2GL1EfRZVnGIjX4135HdPZpw/KqDssUMqgFxMot8C1 yS0Z9v9oUQ/GS3wGk9f9EvGXajp7XUTdObVTIpOzjqSt9oKt74cQzmowQfPyyfCuDXS7 Nc1/lXXpojWu4J0yCpIPPdW+oZQ4ylVn8RDtgnhLSkehS9J1E/6T6ncUJBTcvgNy3ubf NOSlQ9jemUb7Ai+rV2+hywbgs3UJIPslulzvogZoiAnTuOgN0SECP98Su8AtTczGUwn6 IlzgXBrq0Zj499p6mgOodiWfl0rCi0jnacetYxsdKQXdbOJcI3kuHq90kkaH/O1GIywa KF4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6SgSqYLabdht19WsqZYrt1JZCOHPoNOa62kgTyu4dDY=; b=P+K+Ai8Sa20POPfPK9HYOfKIfoVbeZZm3sI6GSKLAjjdCAivDYLFIhJTUKHKOqtna8 oeZKEJEXeZB0S04srpOnGjtX4wqAYHc5avB1pN4Z+VPCtzjn+TvxrLhbWMBe2B5ANTXT wI3Hso0aBGLvQAO1Az6MgH0wK3cDo0IGNBA8eTIe9KSzS8LndMt3TFwcXtpOa/Pgpm4d nF/dBHYfeUhiFqTXx3i0FGK6QsfPnjmzcZVL4GOM9avq7LEHdTK+OjCVU4ESQEFvSIDd Zzqe6++NzVtG3gnlvkhTTt4lnLvycrH1jbMKiEGgut+OCRuKq/6aI0y9I+pjlHNxnTxf oMFw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si1024272oii.113.2020.04.01.09.12.27; Wed, 01 Apr 2020 09:12:41 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732316AbgDAQLF (ORCPT + 99 others); Wed, 1 Apr 2020 12:11:05 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33594 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbgDAQLF (ORCPT ); Wed, 1 Apr 2020 12:11:05 -0400 Received: by mail-wr1-f65.google.com with SMTP id a25so776219wrd.0; Wed, 01 Apr 2020 09:11:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6SgSqYLabdht19WsqZYrt1JZCOHPoNOa62kgTyu4dDY=; b=gxPfVNTVtYMFQ72Wu+U1w5wupZXg47CZVJfLSuT0NJ0jVnHykL3jNCSLCz24ZzDsec 9LWKCwOdZCL6Yf7gXVq1HRn60jNitQB+5GzsooD76lxpu+JqP+lVWDyqkbDIBcFBm+x+ heTcZHKCNhlJuOdHdVytZQvYoupZYFxMJr5Px1C4PDo8eKAlntx87BCuYSCfcFXDf+Co hVnYeWevW4cVWH2OVHNCSC9OXcJ5131SR19f8V97rBTTvEYpyP7H6MEiUu+HeAvUUdvi w42/Mh/sM426P2A2SiYFS1gMPyavd7E0egu8yf9rq1PnbqO4mzI8sKymlBtEOPRq55Uj TXbw== X-Gm-Message-State: ANhLgQ093Bf1GrJOAcCnULEY52IoPBrF+htTKUaKMyoKmb40DWfRwgMs iRPeqdfbEfTxMrenztcaVjU= X-Received: by 2002:adf:df8a:: with SMTP id z10mr25302935wrl.278.1585757461997; Wed, 01 Apr 2020 09:11:01 -0700 (PDT) Received: from localhost (ip-37-188-180-223.eurotel.cz. [37.188.180.223]) by smtp.gmail.com with ESMTPSA id i2sm3499892wrx.22.2020.04.01.09.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 09:11:01 -0700 (PDT) Date: Wed, 1 Apr 2020 18:10:59 +0200 From: Michal Hocko To: "Paul E. McKenney" Cc: Uladzislau Rezki , Joel Fernandes , linux-kernel@vger.kernel.org, linux-mm@kvack.org, rcu@vger.kernel.org, willy@infradead.org, peterz@infradead.org, neilb@suse.com, vbabka@suse.cz, mgorman@suse.de, Andrew Morton , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , Steven Rostedt Subject: Re: [PATCH RFC] rcu/tree: Use GFP_MEMALLOC for alloc memory to free memory pattern Message-ID: <20200401161059.GV22681@dhcp22.suse.cz> References: <20200331153450.GM30449@dhcp22.suse.cz> <20200331161215.GA27676@pc636> <20200401070958.GB22681@dhcp22.suse.cz> <20200401123230.GB32593@pc636> <20200401125503.GJ22681@dhcp22.suse.cz> <20200401130816.GA1320@pc636> <20200401131528.GK22681@dhcp22.suse.cz> <20200401132258.GA1953@pc636> <20200401152805.GN22681@dhcp22.suse.cz> <20200401155712.GA15147@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200401155712.GA15147@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 01-04-20 08:57:12, Paul E. McKenney wrote: [...] > > diff --git a/include/linux/gfp.h b/include/linux/gfp.h > > index e3ab1c0d9140..8f09cefdfa7b 100644 > > --- a/include/linux/gfp.h > > +++ b/include/linux/gfp.h > > @@ -127,6 +127,8 @@ struct vm_area_struct; > > * > > * Reclaim modifiers > > * ~~~~~~~~~~~~~~~~~ > > + * Please note that all the folloging flags are only applicable to sleepable > > s/folloging/following/ Fixed. I will add it on top of http://lkml.kernel.org/r/20200401120502.GH22681@dhcp22.suse.cz and post both later this week to Andrew. From ce456c2f6c8fe0588c1d743a5b87e283aa4806f8 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Wed, 1 Apr 2020 18:02:23 +0200 Subject: [PATCH] mm: make it clear that gfp reclaim modifiers are valid only for sleepable allocations While it might be really clear to MM developers that gfp reclaim modifiers are applicable only to sleepable allocations (those with __GFP_DIRECT_RECLAIM) it seems that actual users of the API are not always sure. Make it explicit that they are not applicable for GFP_NOWAIT or GFP_ATOMIC allocations which are the most commonly used non-sleepable allocation masks. Acked-by: Paul E. McKenney Signed-off-by: Michal Hocko --- include/linux/gfp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index e3ab1c0d9140..8040fa944cd8 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -127,6 +127,8 @@ struct vm_area_struct; * * Reclaim modifiers * ~~~~~~~~~~~~~~~~~ + * Please note that all the following flags are only applicable to sleepable + * allocations (e.g. %GFP_NOWAIT and %GFP_ATOMIC will ignore them). * * %__GFP_IO can start physical IO. * -- 2.25.1 -- Michal Hocko SUSE Labs