Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5133822pxj; Wed, 26 May 2021 03:44:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwICKHx3Kr6SiG+eYTc5SwzpkUtkUQlEBnmtukbUrU0LQ5n9nFck0ky/vqf+2M7PXOYglsj X-Received: by 2002:a05:6602:158a:: with SMTP id e10mr23857946iow.137.1622025887267; Wed, 26 May 2021 03:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622025887; cv=none; d=google.com; s=arc-20160816; b=nlgt/zXU2z/CZ0u2LrzakomtRS9SvZ1GG+zQfSF6myRvt3PkMgAhll1iyEI0AVWRx2 fSabdjoWJjQZymNP2tQlEtGYWbrBTFqhb+9UNhwvozVRE5MPIX7R2HOdxftMb49/uBSE aydRLpjOwaJGQPwtYae3EWpPGo2/1wLAgLWlxYfcMI2qpiPZ6LrHFV6jDvdzdQkQ3uA4 7nDHFf84rDC/dadx6mGGI77wep0N46aqaO9xna/6tchsIG15j41YEdRa7aC8WBV2PbOE 1aRXVtXM6beAtDFMtHwTqWad4b2uagvvLssdUpGMKy67FBShbOu+3Fx54yRVsYLpcU1u Qwiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=fPj7I8V78aVsynCxxpq/KE8MVBwA6HB4n+JsNyHu7MU=; b=dcJ6jm2qIZh7KKcjNIKV6U3g6MiaHZrfCx2PaqTELqfJRuHydRHOjYDU7nJykNN9hy BmhMP5mhCuC/LuTvJqXunUM6hV1fzvJCGdXI5PcdlOUrevPQXsEJ1qn/IzMCG2uyKmEA QGFSyC7Gw+4YtvraCK28bcw3savd/wFuYhAOmcgeZMqe1dB9cqmPWm2uk/VBmF1yYmZp ZScAs8K0s5yYnohUxO9/NTAmYKJxDziywxG71lMt6xp5+8uhZhL4n91/yJBmCT5vMIVE iAN4u5QuNFspYz3HEMuHGNClPJIWLdFMacbRYorTAGf22007Y/ok0mwwB9Dyw3IaseGZ CTJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=w1rKkhFi; dkim=neutral (no key) header.i=@suse.de; 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 s15si24857959iog.67.2021.05.26.03.44.33; Wed, 26 May 2021 03:44:47 -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.de header.s=susede2_rsa header.b=w1rKkhFi; dkim=neutral (no key) header.i=@suse.de; 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 S234117AbhEZKou (ORCPT + 99 others); Wed, 26 May 2021 06:44:50 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:50148 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234034AbhEZKot (ORCPT ); Wed, 26 May 2021 06:44:49 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) by smtp-out1.suse.de (Postfix) with ESMTP id 51FC1218C1; Wed, 26 May 2021 10:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622025797; 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=fPj7I8V78aVsynCxxpq/KE8MVBwA6HB4n+JsNyHu7MU=; b=w1rKkhFi0pJrSnQzbPlCi4jd4JUmWCVbmkawo5ONWkLGZjaAd4OOTVjHa4Gmezql6+NA8L Xs2JC03L35Z2UpeaK8c9+ThtIDQe8LKA4JXZ5fhUKQy4gIg3IGzfafNbLsx4l8jSmbIKso Wf3uKdBlLO/TjQhlOa5pd+2vYAIa8z8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622025797; 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=fPj7I8V78aVsynCxxpq/KE8MVBwA6HB4n+JsNyHu7MU=; b=Kgg05ZV4mpHpEobXG9Pmzub+QvqWZu63oCZiSMvUiYFaVZDMzSS8BBkwapybROS2wdhjrA nBAUC4K0V2lia6CA== Received: from director2.suse.de (director2.suse-dmz.suse.de [192.168.254.72]) by imap.suse.de (Postfix) with ESMTPSA id EC14011A98; Wed, 26 May 2021 10:43:16 +0000 (UTC) Date: Wed, 26 May 2021 12:43:15 +0200 From: Oscar Salvador To: David Hildenbrand Cc: Ding Hui , akpm@linux-foundation.org, naoya.horiguchi@nec.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3] mm/page_alloc: fix counting of free pages after take off from buddy Message-ID: <20210526104315.GD1656@linux> References: <20210526075247.11130-1-dinghui@sangfor.com.cn> <301ec664-f153-7ed6-0231-8bbffb630a0d@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <301ec664-f153-7ed6-0231-8bbffb630a0d@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 09:58:15AM +0200, David Hildenbrand wrote: > I guess if we'd actually be removing a page from the buddy while it's > currently isolated by someone else (i.e., alloc_contig_range()), we might be > in bigger trouble. > > I think we should actually skip isolated pages completely. > take_page_off_buddy() should not touch them. That might be a problem indeed. I will have a look at it. Thanks -- Oscar Salvador SUSE L3