Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3360084pxj; Tue, 1 Jun 2021 03:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAuIAs2ubtUrCAowNtAOzJBRcEqIHp8lTzgid7c2XKlnVoTiXsTTDyjglX8+Og+PfHT4M4 X-Received: by 2002:a17:906:1689:: with SMTP id s9mr19719668ejd.252.1622543722008; Tue, 01 Jun 2021 03:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622543721; cv=none; d=google.com; s=arc-20160816; b=NYPuilkM6TReWAI8cVCBMu3yq1YtjLkRlYyQf0xNW4pTmEAcPAV2eer+VE+S5kkrbf UfN7yK485FVMMLS5jmaT5X3ixvH61y63fvlw2TWUU/SGPJtP9fu96pUvlmS1h38dS+FS DQR1RMY4NvRbmWsvzGscTnRf+wlqR+r51tqCApk3BZm0loxrBdx2s9skcsY+iqZsruL3 QbpACaFCZ2NWzdMwbASGzsFBZruDRciPYD/0bciCoCzsylO1SwsbcJFcdka/6dv8BFsq duSxsk7h53HidZBTUDNjNmyLqdQzUHtwJInFCZNIy0LT6D+628eawwtm6Hyob3UJOg3u KMrg== 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:dkim-signature:dkim-signature; bh=VCS921ApL9LSFwrtHBUcyFVnLRi2XXAUivZ2aaWFSGs=; b=nkNYMIK7ZKTHkV72skkV9VpdWUbe5U+jc2L3VyAqWe1XVZ5ogyngJezpYihEz77isZ ke7ryXrt5myKTlnnZoJBwqaKI7V31vYwxPftOWu9/kM6D4cMv8KeToLOZLk/+yTtYWmc 6LBt+uygsNJfTR7ui+LP024iFz6lvlROvYdawZ/Bvs2MB4BqnAVLsXKRJfJ5Byhv5SBB 3hZQIZ91p+9mWipo8ac6LT0d1SldVjHZwfYhAeye5drPufFljHtG/n92VSNHgUuZ0k3m yHTk8k0AIyTBsg9NtlaTgqvhbrbtrgy97Ll6lesfbKoOKRchEUti9XRr4vrM9gXPxq7I exjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Tnc5SEPL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=j7jPzd4F; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Tnc5SEPL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 u23si7934852ejt.28.2021.06.01.03.34.58; Tue, 01 Jun 2021 03:35:21 -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=Tnc5SEPL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=j7jPzd4F; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Tnc5SEPL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S230308AbhFAKf2 (ORCPT + 99 others); Tue, 1 Jun 2021 06:35:28 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:35172 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbhFAKf1 (ORCPT ); Tue, 1 Jun 2021 06:35:27 -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 C22781FD2D; Tue, 1 Jun 2021 10:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622543625; 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=VCS921ApL9LSFwrtHBUcyFVnLRi2XXAUivZ2aaWFSGs=; b=Tnc5SEPLQ/1zAFkGh34oI2iHhRh4Q2//2eaGnvMBQ2HRlVLnE8/A94f2jyP8ITXlN19gp1 +21PsMYvprqq4XKIUKQj20+ePF8t+JcljHgaqFJidDU2/FVkvgK9Y1dx5p9OxQuKEZxvVj MbLpxpGFQNE0kaMUDtUxo3X9T/SXu+Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622543625; 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=VCS921ApL9LSFwrtHBUcyFVnLRi2XXAUivZ2aaWFSGs=; b=j7jPzd4FVhOqJfzyqba8w/fdtwXvlhi9TrNZkDTXimNwP0VI/AFXh/ykOIeXPbahAf7aaF JxsLT7tz0P/hkQDQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 3412D118DD; Tue, 1 Jun 2021 10:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622543625; 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=VCS921ApL9LSFwrtHBUcyFVnLRi2XXAUivZ2aaWFSGs=; b=Tnc5SEPLQ/1zAFkGh34oI2iHhRh4Q2//2eaGnvMBQ2HRlVLnE8/A94f2jyP8ITXlN19gp1 +21PsMYvprqq4XKIUKQj20+ePF8t+JcljHgaqFJidDU2/FVkvgK9Y1dx5p9OxQuKEZxvVj MbLpxpGFQNE0kaMUDtUxo3X9T/SXu+Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622543625; 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=VCS921ApL9LSFwrtHBUcyFVnLRi2XXAUivZ2aaWFSGs=; b=j7jPzd4FVhOqJfzyqba8w/fdtwXvlhi9TrNZkDTXimNwP0VI/AFXh/ykOIeXPbahAf7aaF JxsLT7tz0P/hkQDQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id LchcCQkNtmAGEwAALh3uQQ (envelope-from ); Tue, 01 Jun 2021 10:33:45 +0000 Date: Tue, 1 Jun 2021 12:33:43 +0200 From: Oscar Salvador To: Michal Hocko Cc: David Hildenbrand , Anshuman Khandual , Andrew Morton , Vlastimil Babka , Pavel Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm,memory_hotplug: Drop unneeded locking Message-ID: <20210601103334.GA5927@linux> References: <20210531093958.15021-1-osalvador@suse.de> <679d311a-8ad4-bb53-18f0-11190a2bf1b5@arm.com> <20210601074737.GA30768@linux> <20210601081250.GA32364@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 11:47:13AM +0200, Michal Hocko wrote: > While you are touching this and want to drill all the way down then it > would be reasonable to drop pgdat resize locks as well. > It is only used in the early boot code and we have one executing thread > context per numa node during the deferred initialization. I haven't > checked all potential side effects the lock might have but it sounds > like there is quite some clean up potential over there. I am not sure about that. True is that deferred_init_memmap() gets executed on numa-thread so it's not a problem for itself, but we also have deferred_grow_zone(). It might be that while deferred_init_memmap() is running, we also have calls to deferred_grow_zone() for the same node and that would cause some trouble wrt. first_deferred_pfn. I need to double check it, but IIRC, that is the case. -- Oscar Salvador SUSE L3