Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp222169pxb; Sat, 10 Apr 2021 00:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNe4lB8XIg0EllimVnuaSOrvNMlna8amtQTl341rWHvrn1dwGYXGB/XmgBMBFIwq2pwSw4 X-Received: by 2002:a63:1d41:: with SMTP id d1mr15560400pgm.135.1618039725561; Sat, 10 Apr 2021 00:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618039725; cv=none; d=google.com; s=arc-20160816; b=lV11OCAf7uhGLcX8JFJ5BhB4AMyPzB8gVa43dIdrW+tUS8MHsE13MQWNvVsfOljruf ZIPFPYC83b810AeyrBWuil7Str2qpKwxW5gqeUIaL0cho6Rdy+Ld3x/Tx0qoZdHzYBYv MaorQCuBwdVqhp4+WFZb0d4Xqb/lC2C9AAv/0I03Gwh0Gmzaa43oJFUVbov/AUbAQTZw UCxhyCUmd5KvOzp3fix3W1Cwi7pi03StLgqRmaLCUJSolv87Asq1jfduFVb3NdLJYlRX JHG8tXcPoZSVEqOG7XEPCRqEVu6UYou2yPjVQUu8XwNaYtbBHlO0s8VUKdx0xdcRS5lt HdNA== 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=yjZzbPPWgXhfJIj4h7rGByFGwcymMj9q3Ge4BPGca+k=; b=h/NHkHOfU39adn/VbbhZQsqt7wPLEG37OF53PUfwC4+UvjZvVHWKUn3lne7hcDMGOU eY1g2CS/6DM67gghPC/2UMeIVwn66+WH+Kyt/a+aTJNzsyh+gtzOC6/eyTMTzDqILg36 oMbg1YSZNY5YKkMjVMAO0zM+qTSqnAX+q7l8NUeUn1F/9fphakfApjEBjuKmdS6TSsGR RQcoFtAK/iyLjEx0EUI01UaJDr+5OefI3Ya+NM3sXGo1YXMQWI2e41Jxwv5o+eEDP7Vr YNczdyfMzW3P543BNHOxwF1WHyvA6lBaw0ztAG624HL6qdN99rSB/E1feVfAPbOYMoS4 RJnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fCSiSkzj; 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 nl14si5379735pjb.82.2021.04.10.00.28.34; Sat, 10 Apr 2021 00:28:45 -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=fCSiSkzj; 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 S234388AbhDJH0w (ORCPT + 99 others); Sat, 10 Apr 2021 03:26:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:50828 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbhDJH0v (ORCPT ); Sat, 10 Apr 2021 03:26:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1618039596; 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=yjZzbPPWgXhfJIj4h7rGByFGwcymMj9q3Ge4BPGca+k=; b=fCSiSkzjE3C7mHOKwprZ06zOxaiXH5i4AebWdZtgLiv0uPW/lAcrcJEj1BIs/nlOoZ74eG f3dq9ng3FJLr294v+ORxAdreMahYyju1zN36zEWvWsgbfzSJmB0Sx4CdXU7Jy+gqgK2OGi qhdKuha/26jglfRF+kl/KTArr7VTPEo= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id BBA12AFDF; Sat, 10 Apr 2021 07:26:36 +0000 (UTC) Date: Sat, 10 Apr 2021 09:25:52 +0200 From: Michal Hocko To: Mel Gorman Cc: Andrew Morton , Linux-MM , LKML , Oscar Salvador , "Michael S. Tsirkin" , David Hildenbrand , Vlastimil Babka , Alexander Duyck , Minchan Kim Subject: Re: [PATCH] mm/memory_hotplug: Make unpopulated zones PCP structures unreachable during hot remove Message-ID: References: <20210409120957.GM3697@techsingularity.net> <20210409134221.GO3697@techsingularity.net> <20210409151259.GP3697@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210409151259.GP3697@techsingularity.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 09-04-21 16:12:59, Mel Gorman wrote: [...] > If anything, the minimal "fix" is to simply delete IRQ disable/enable on > the grounds that IRQs protect nothing and assume the existing hotplug > paths guarantees the PCP cannot be used after zone_pcp_enable(). That > should be the case already because all the pages have been freed and > there is nothing to even put into the PCPs but I worried that the PCP > structure itself might still be reachable even if it's useless which is > why I freed the structure once they could not be reached via zonelists. OK. Let's do that for now and I will put a follow up on my todo list. Thanks! -- Michal Hocko SUSE Labs