Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1663726pxb; Fri, 24 Sep 2021 09:14:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFVJU8PBEh7TrLbxma+n33F08T8oM221b2heLWAMZXRccFf3PtZLrwj0Bd9aoHTEbfIgii X-Received: by 2002:a05:6e02:152b:: with SMTP id i11mr9262315ilu.65.1632500055463; Fri, 24 Sep 2021 09:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632500055; cv=none; d=google.com; s=arc-20160816; b=Kp7eINR94EyunbMNj375WLyhFRI4GjRmeWAjI9TOkzB4lOaOwXTktxHejDBX3UUswM POSTL2Hn7H79dlNyr0xebQA58ybje8wBwd8DPj0GKN3ZuCjcUUK4KDl8YZhW5i2SfPSQ 59D8SsQaN3K22UV8GcImq6ieCzGPfYKViMNop5/zIKhyhhqWKHxcsjFz7a2hDedvDnCC ga+b0ths7696Slm36G7G2Upk+l5JP1p9YS8fml/Ox7kMZB2YtnrP+VfuyOBAo2E5RfKB lXBbeX1BQc8HSq+GZi0Xs5NJxhjGwr8Wxs4QwQlPa8dnlxyYCdCF12qfvsm3EkKvMjiE 2PTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:from:cc:to:subject; bh=5L3XfDqn7t9df4NYz9lK2pQNCuNYid4OPpGEzmQPgrM=; b=iGeipIw6e1khvD7PsFuqZsjKmq4/i/jIjy3FBP/NSy55XfulqVgGkx+pkb4shDAURQ Uw27gfqTrtArUZfERhfW479wlcRXFnLxBb+RIgsj3J01hD2rwA4QDxq9vM/4E/NipCuc CjvAlC5GjFyev+7f8HFTcxpwgZI4jqHsO9M6ICKO1gQ7MpzuhnVDyiCcxzojeWR4aeJd Rg1OsQCb5eWwfk1FaZqLMahjByN4ynpLMCukCpQ33M9BfG+sjShNu04YeyJ69OW+HNU8 3Nw7Te089fpOdFd6VhWXyXIMaoji0m0s8kYlmlJ8By2DivXt2GVnytC21ZInbhNwgL00 Ptgg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si10710919iob.24.2021.09.24.09.13.55; Fri, 24 Sep 2021 09:14:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347329AbhIXQO0 (ORCPT + 99 others); Fri, 24 Sep 2021 12:14:26 -0400 Received: from mga11.intel.com ([192.55.52.93]:43617 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347225AbhIXQOZ (ORCPT ); Fri, 24 Sep 2021 12:14:25 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10116"; a="220906285" X-IronPort-AV: E=Sophos;i="5.85,320,1624345200"; d="scan'208";a="220906285" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2021 09:12:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,320,1624345200"; d="scan'208";a="551865357" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.28.105]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2021 09:12:51 -0700 Subject: [PATCH 0/2] [v2] mm/migrate: 5.15 fixes for automatic demotion To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, Dave Hansen , ying.huang@intel.com, mhocko@suse.com, weixugc@google.com, osalvador@suse.de, rientjes@google.com, dan.j.williams@intel.com, david@redhat.com, gthelen@google.com, yang.shi@linux.alibaba.com, akpm@linux-foundation.org From: Dave Hansen Date: Fri, 24 Sep 2021 09:12:51 -0700 Message-Id: <20210924161251.093CCD06@davehans-spike.ostc.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes from v1: * Use memory_notify->status_change_nid to detect node online/offline events instead of building a new mechanism. -- This contains two fixes for the "automatic demotion" code which was merged into 5.15: * Fix memory hotplug performance regression by watching suppressing any real action on irrelevant hotplug events. * Ensure CPU hotplug handler is registered when memory hotplug is disabled. Cc: "Huang, Ying" Cc: Michal Hocko Cc: Wei Xu Cc: Oscar Salvador Cc: David Rientjes Cc: Dan Williams Cc: David Hildenbrand Cc: Greg Thelen Cc: Yang Shi Cc: Andrew Morton