Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1378649pxb; Fri, 10 Sep 2021 04:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/1oDw9OFlfwBh0TLSMg6/zSyMZcfrwnT9IhRZtMTcBESkHk5iC6UwLwKJ3WmPlov2uyI4 X-Received: by 2002:a17:906:f92:: with SMTP id q18mr8784574ejj.353.1631274357704; Fri, 10 Sep 2021 04:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631274357; cv=none; d=google.com; s=arc-20160816; b=lP43ajLk1Yhka2928XKM39cjwTCP+ub+O2kqbG6FWrXsvtAToYcRYFY0DhoziMeULp 7VNnyUMNSa+1mQnlnukdKGlve8kkjtgC7LtqARHfx/l+55GTXp98zgRIV0EX02fgPpTV 0V/j+7uBxbzWD6fb5iwSJ+PcuhYozlaLVECJqYPa+XMw1yF6z7DK6D/bGr6dXGCOkCuU 8I8ZCSwB9Vr4JaCzqcEuZyQ6NzPaYZTod8VsyR+9vdRMYFQiFAonW3EowLcPj1W0YwTd cgBuQArdDKD0FtxWCCfOTzfIh4JGSDjsvSfariUUJhzgQLUtAp9DNqi/ghEDeC1GGtOj 59Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w86BLDTkoihpTkMV+bmcVu+5NgKjI1pW8yCMRIcNiRk=; b=y9/O9ZU11926LAkMm0ePrEHcTDjslVr1Zqy34iziXbkdbjBFXb2o33wR6rPi6Ww3wG R13Qty0fd3jxuYY1RkLPDvTtXjW8QkCTc96xDSRMhPq6Ab5weDFAWdRD+0IaEXGjRMQj tGoG4JM07ABhICvejT5Og18kk/SGSwezDxhb+44Wb9RLGTlL4H4da7E8ASu9DBcKcbj+ tyPdeEzM71YGsoq9PHJCP4N0Ys2m0QSonhGVBLK49XK7NI1qz6SbzxXBjS7/8vpcXmiU ZxlUvWYz4uuD4mlnOe96I1KXMa6fAd9X4164dHRKKVHDyM6jieogF4pnPGL4kVBVwl2E Gg0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=aEmdav0T; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq9si5003902ejc.356.2021.09.10.04.45.33; Fri, 10 Sep 2021 04:45:57 -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=@suse.com header.s=susede1 header.b=aEmdav0T; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232881AbhIJLpM (ORCPT + 99 others); Fri, 10 Sep 2021 07:45:12 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:36828 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232613AbhIJLpL (ORCPT ); Fri, 10 Sep 2021 07:45:11 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 8A1A92005C; Fri, 10 Sep 2021 11:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1631274239; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=w86BLDTkoihpTkMV+bmcVu+5NgKjI1pW8yCMRIcNiRk=; b=aEmdav0TlL1DhoCmFgKBUDEb9LdZuGAI7g1zjKNtqSQ2Dhefhfx68Ix3YOXahsgN8qiAYj 05XfYluXf3avyedy+S9Yw8KKgj+x5AffZ6aNc7w1EKMR2kRfxVcrmIJ0vxXWozNBx24//m A3s5B9RwfBY0x3U76Iyr7zMkHrtAPZg= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id E2A8FA3BAB; Fri, 10 Sep 2021 11:43:58 +0000 (UTC) Date: Fri, 10 Sep 2021 13:43:55 +0200 From: Michal Hocko To: Feng Tang Cc: Andrew Morton , David Rientjes , Mel Gorman , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/page_alloc: detect allocation forbidden by cpuset and bail out early Message-ID: References: <1631003150-96935-1-git-send-email-feng.tang@intel.com> <20210908015014.GA28091@shbuild999.sh.intel.com> <20210910074400.GA18707@shbuild999.sh.intel.com> <20210910092132.GA54659@shbuild999.sh.intel.com> <20210910112953.GB54659@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910112953.GB54659@shbuild999.sh.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 10-09-21 19:29:53, Feng Tang wrote: [...] > > Sorry I didn't really get to read this previously. The implementation > > works but I find it harder to read than really necessary. Why don't you > > use first_zones_zonelist here as well? > > The concern I had was which zonelist to use, local node or the first node > of nodemask's node_zonelists[ZONELIST_FALLBACK], I am not sure I see your concern. Either of the two should work just fine because all nodes should be reachable from the zonelist. But why don't you simply do the same kind of check as in the page allocator? -- Michal Hocko SUSE Labs