Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1838825ybh; Thu, 23 Jul 2020 20:16:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPbFh5MgnUuHIoJ7T2tJY1hy8aPfCL6zcc0Kf1AhVp5WTEc/qUw3uelIbv+j4eC/TMCQU7 X-Received: by 2002:a50:f385:: with SMTP id g5mr6773878edm.347.1595560616279; Thu, 23 Jul 2020 20:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595560616; cv=none; d=google.com; s=arc-20160816; b=F0nqwaVMsYnhPKzgasxLghBIicJ/yxs7S7mlL7/6NfCZn6pdE28jfMp6RBdqPjK58C zOCHhMfERbBt+oPj/yCf75AsQFgBtzWtdAvUIAkLGpMJ+oWbeMPqPAki6PhYMMXMEMSn eZX/Inulbjf4QdG3G2QGFc5kY97CV1BDTJC93vCZEB5X9bRGmxCfUVHsysUeE/Ox/4DD HCwfNja/5QvC4yHSW4clnZlV3ztxZ44Qt935Uqb39zRloPjMlPZjf46E6f9ZYHUw24Ef gQR3tPSfkxb3bLrE+KFOSaoQTVMTW0AlXQzxC5ZtwnkxoDVh6XYYlhHwCHA4imZTSIVm phdQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=jfsDVT/8mZZN4KlLCLyYgr1ujIvD04MlArP2Q0gwrBY=; b=sizBjOAT/Q+Ya6tS/OoFwCObA9Jl/d0n/BlrbTmwSxmKFaPHEbU+dX0k8A+HgG+dP8 ozLTkvfgQkuI6Jd82N2HxcJFKys8bY4DGyPGLM3vLiJZ7f40ocJwD7Kwo4Vr/jybvJWN 8qa8yLjvn6ZhNLWvKuGTapSw/xQHVE70vogSLUtwkFuxaLKmiY1BFsagn+dk+VpOk/JK e3lVce/45zQPkFfWGRd4Zxmnu2EP6R8l57M0kAK0b+DMLf/7vp6cd+1FTbuOnxlkoUzF 3x2racDokUJutNjtD67QJ09bBYCgo3dvXHKVPl9wE+nFpqG4GTpfDxRDwZRjBYilRYd9 fWmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HlRbJgYK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj5si3105526ejb.49.2020.07.23.20.16.31; Thu, 23 Jul 2020 20:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HlRbJgYK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726607AbgGXDOH (ORCPT + 99 others); Thu, 23 Jul 2020 23:14:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgGXDOG (ORCPT ); Thu, 23 Jul 2020 23:14:06 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0DDF220792; Fri, 24 Jul 2020 03:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595560445; bh=7Nn2vijdOpJYv5RRp0kMLo2D//KQ22IaqcB8VQUTtz4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HlRbJgYKPEVZSsXegUjp/2v7/SwgSpMQYylFMhoicS2JzBa03usl8BoFyGcmB0z7B n1RyZpC+bJY2hnWvW8bJMa6OVOAmq5NvlrrjyOpBEEthdHyI0RlDSmPeTj65hZZO8B AcF2dBRPplDmW6/IEOxvQzpgoKWBdUIrGGEFs5xo= Date: Thu, 23 Jul 2020 20:14:04 -0700 From: Andrew Morton To: Joonsoo Kim Cc: Linux Memory Management List , LKML , kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Michal Hocko , "Aneesh Kumar K . V" , Joonsoo Kim , stable@vger.kernel.org Subject: Re: [PATCH v2] mm/page_alloc: fix memalloc_nocma_{save/restore} APIs Message-Id: <20200723201404.f76ccd792c9e74f3ae8ec9f5@linux-foundation.org> In-Reply-To: References: <1595468942-29687-1-git-send-email-iamjoonsoo.kim@lge.com> <20200723180814.acde28b92ce6adc785a79120@linux-foundation.org> <20200723193600.28e3eedd00925b22f7ca9780@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Jul 2020 12:04:02 +0900 Joonsoo Kim wrote: > 2020년 7월 24일 (금) 오전 11:36, Andrew Morton 님이 작성: > > > > On Fri, 24 Jul 2020 11:23:52 +0900 Joonsoo Kim wrote: > > > > > > > Second, clearing __GFP_MOVABLE in current_gfp_context() has a side effect > > > > > to exclude the memory on the ZONE_MOVABLE for allocation target. > > > > > > > > More whoops. > > > > > > > > Could we please have a description of the end-user-visible effects of > > > > this change? Very much needed when proposing a -stable backport, I think. > > > > > > In fact, there is no noticeable end-user-visible effect since the fallback would > > > cover the problematic case. It's mentioned in the commit description. Perhap, > > > performance would be improved due to reduced retry and more available memory > > > (we can use ZONE_MOVABLE with this patch) but it would be neglectable. > > > > > > > d7fefcc8de9147c is over a year old. Why did we only just discover > > > > this? This makes one wonder how serious those end-user-visible effects > > > > are? > > > > > > As mentioned above, there is no visible problem to the end-user. > > > > OK, thanks. In that case, I don't believe that a stable backport is > > appropriate? > > > > (Documentation/process/stable-kernel-rules.rst) > > Thanks for the pointer! > > Hmm... I'm not sure the correct way to handle this patch. I thought that > memalloc_nocma_{save,restore} is an API that is callable from the module. > If it is true, it's better to regard this patch as the stable candidate since > out-of-tree modules could use it without the fallback and it would cause > a problem. But, yes, there is no visible problem to the end-user, at least, > within the mainline so it is possibly not a stable candidate. > > Please share your opinion about this situation. We tend not to care much about out-of-tree modules. I don't think a theoretical concern for out-of-tree code justifies risking the stability of -stable kernels.