Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp839099pxj; Wed, 2 Jun 2021 12:49:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDRf8c4ztYSaEJt+L186bBc71cPszhzTTpOfvOcJPvtOUnXlBizFBhLIosJ21RlsqeB1Mk X-Received: by 2002:a17:906:d1d1:: with SMTP id bs17mr35986435ejb.492.1622663371761; Wed, 02 Jun 2021 12:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622663371; cv=none; d=google.com; s=arc-20160816; b=NvaRILka0Mx58IsZyELOQusK/iKKh7jJKlU9cF8yEfgJSKITwurEDzJzVbz1ZMIrLp njSchijA6rBOnBD7g6T5xGL4betDTqTTIJfOLPnyXF3g+Jx1pBo+Km+BX60f0XTPAoEY Zc2tRIfv/FUjjufRN+QQOmFny/Ed1Od/MDXJaZMVILGb+Mfjx6a0Sd90eUmMugcpHWNZ wFz60H5y+ft37RXF3Qa2M0cYOxooFTfIzIAm/snRqfzAihDEuSbeXx8ka+//eTokAmGl rdXR+a3ZvySk9SS1VSme8k/7OxBEE0Nyggd9WPfyLMUndfMpWR+jvGnDTMEoIz4DcQwt HQRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=w/oc7YZVc05AvuONiWEUclRuOrK26WvFpQMDXLOqQ9c=; b=X9sytV3k7x0srr2nuXrek7au16XT2idbbOh5egEzYx5OS+pKKEpWKHGY/dSO3egOr3 JxVosAfl3KwtfhBhftfeCH7QitKBEO5iRXfCKd2DtRWlU/RLXKdqWoZBliEWxkBtk7f3 g58iJsDOn70EhG6Ri2uI6RUZ/K+ofjAIDsHkdvhqvC1OF7LDHsJtSiSoVoraj56/AhQj udH+t1pykbxbeUaHrSlLl6VWuYAZzKI9xCrVkMy0t+l9jsBWJXRuPdgZgXqxKo9GN3mX JHYSjv+cGiRRqWohyQjcGr4zHRCaNb3WAjafb4cOYyyUQLSxzDdfaTOK5g8pGChztSbo EfKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UVlFEgG3; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UVlFEgG3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=c7ryAEr6; 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 u21si606853edy.178.2021.06.02.12.49.07; Wed, 02 Jun 2021 12:49:31 -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=UVlFEgG3; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UVlFEgG3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=c7ryAEr6; 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 S229595AbhFBTrn (ORCPT + 99 others); Wed, 2 Jun 2021 15:47:43 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:50200 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbhFBTrm (ORCPT ); Wed, 2 Jun 2021 15:47:42 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5FAF51FD3C; Wed, 2 Jun 2021 19:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622663158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w/oc7YZVc05AvuONiWEUclRuOrK26WvFpQMDXLOqQ9c=; b=UVlFEgG3USHB6GmF2UBb4j2hKuSpBF1PUQK2tZZvFfFKLvQwzIHFvKOr52vbvFRZJcbqHy /KQU5u0CoKFdVaXQTEkEVTr3HwaKCa3NiIUFmHKYR9XT+7uxKzTthxvH4TLUrYI/alTFMF r/VTLvI8Evom92o9sMeNIvilmjd/bk4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622663158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w/oc7YZVc05AvuONiWEUclRuOrK26WvFpQMDXLOqQ9c=; b=c7ryAEr6OsnLL2688tPFa+O88w77ef77Ecd6ZYceexmGhQpm9tnDi1snWK5pTruXCA8tcS A+rmZ9QdxEpbYzCQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 531DD118DD; Wed, 2 Jun 2021 19:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622663158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w/oc7YZVc05AvuONiWEUclRuOrK26WvFpQMDXLOqQ9c=; b=UVlFEgG3USHB6GmF2UBb4j2hKuSpBF1PUQK2tZZvFfFKLvQwzIHFvKOr52vbvFRZJcbqHy /KQU5u0CoKFdVaXQTEkEVTr3HwaKCa3NiIUFmHKYR9XT+7uxKzTthxvH4TLUrYI/alTFMF r/VTLvI8Evom92o9sMeNIvilmjd/bk4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622663158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w/oc7YZVc05AvuONiWEUclRuOrK26WvFpQMDXLOqQ9c=; b=c7ryAEr6OsnLL2688tPFa+O88w77ef77Ecd6ZYceexmGhQpm9tnDi1snWK5pTruXCA8tcS A+rmZ9QdxEpbYzCQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id BIbxE/bft2BXDAAALh3uQQ (envelope-from ); Wed, 02 Jun 2021 19:45:58 +0000 MIME-Version: 1.0 Date: Wed, 02 Jun 2021 21:45:58 +0200 From: Oscar Salvador To: David Hildenbrand Cc: Andrew Morton , Dave Hansen , Michal Hocko , Anshuman Khandual , Vlastimil Babka , Pavel Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] mm,page_alloc: Use {get,put}_online_mems() to get stable zone's values In-Reply-To: <39473305-6e91-262d-bcc2-76b745a5b14a@redhat.com> References: <20210602091457.17772-1-osalvador@suse.de> <20210602091457.17772-2-osalvador@suse.de> <39473305-6e91-262d-bcc2-76b745a5b14a@redhat.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: osalvador@suse.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-02 20:37, David Hildenbrand wrote: > Long story short, using get_online_mems() looks wrong. > > Maybe the current lightweight reader/writer protection does serve a > purpose? It was too nice and easy to be true I guess. Yeah, I missed the point that blocking might be an issue here, and hotplug operations can take really long, so not an option. I must have switched my brain off back there, because now it is just too obvious. Then I guwmess that seqlock must stay and the only thing than can go is the pgdat resize lock from the hotplug code. Meh. -- Oscar Salvador SUSE L3