Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3059792lqo; Tue, 21 May 2024 05:57:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4ShQbHyKuK8hy7tgY5mnNxjniDI0tbQuH2usZJMBCY9QdHCcO+b/tiwDfOL7RCe7RWFLghgWWpjfc/cwj2pdgjUjdaAR0EbO0PD25Vg== X-Google-Smtp-Source: AGHT+IF1BGCV90j/nvApMqeFbKxyRLw+c9cJAa0p+694aEUjYqjrzyJ7Kf5krw/Y8hMQg6HKTsZg X-Received: by 2002:a05:622a:c7:b0:43d:dd5a:5d52 with SMTP id d75a77b69052e-43f7a2968bdmr170192911cf.2.1716296256893; Tue, 21 May 2024 05:57:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716296256; cv=pass; d=google.com; s=arc-20160816; b=HWDwv9jJ7CDC6CVUYU5C84pBgvseAi9tzA7eac6oU2nRupI+7rGux9Wje6S7ienKPa /pg1YaHDAWlhb6cKh0UBWnFxIuuZlAtju0kaWeeWL+gUuuJAsBSjfVTIWb8KbeptguBH ovUcWhmRZnzA6oQlMc2ilWsWgpOQ/qRVggPsY+se4usIS2dTNFEmtdstNphT57WffB3S vsOPZv5lNB2W3DgnYfIAimyYHtUWEBUxe2qAsS7lMIu+UtO1ZJYKzBF/VbiJmcbNhEXU sMZK7dtP8dm7qggAH8N7LDtAg6P03lL11LTcfmrDV2uKUFCScw79XmRZfHgQYT1OJsij hP/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=0mlGZ+pjE3DBn4405CLRqOUEa255qvEGdzVfXh+mxBI=; fh=ufycPJ1dsRg//ZEr81yjkpL72qiMBKngtOT1zahl+Ps=; b=eZvo0H6SDGrJ3rWBQI8gQE6NTdnRzu2hXsM65gOqscsdMQvDxHcrFpFlAjhHo4Tj96 s+tT+ygFr3jBMdeBHzO3SfSJykh/Yyh4z0FZMN7WHxtjn1SxcCyJrMLphCu6LPXr1KFn Zv+Q+hoyPgyfQvtxeygjSgmo1XRUMe8YM1QWgpH7fGAEA0jLeE5cdSZP7UrapSQWJFnM eXcqr6ALe2NR7cHesiYQMfAPOojt2DUHQR/j8iEvBuJgMCRSkzlPgBc8bl+So4iywvgK uVSxiKReUNz/toEBIP9hVQ6x+TzS7kAT9Br6g9LnsmUro7fa7qR7Qoelzdokxb+jW38j BeUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4HtQvZAR; arc=pass (i=1 spf=pass spfdomain=flex--jackmanb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-184973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56d63ecsi289129401cf.710.2024.05.21.05.57.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4HtQvZAR; arc=pass (i=1 spf=pass spfdomain=flex--jackmanb.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-184973-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CF681C20D25 for ; Tue, 21 May 2024 12:57:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EC46770FB; Tue, 21 May 2024 12:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="4HtQvZAR" Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E6771E48B for ; Tue, 21 May 2024 12:57:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716296251; cv=none; b=I8jyiOerj+KGexD8UCKNs+gE2g5lnhN0U9r10LQUDOVN6jAhpBd5JhVCY1wHzg+wXQkM3jVbFngP/EEZmk89c6alm4XmWzoEzRs3T4M2+Ni2UVmH+KLzQdWtwfafx2MhxxegJZ8v/pC0P2xC4WFu+YVGpJiyk3H+bb6HgeyrCLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716296251; c=relaxed/simple; bh=IAKqG4a3JGgyYgp6qcb5UjB5e/oQrViAJQ12kcFXiXQ=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=r+fzoLHXFJm0qwCHYnkNB4vzl6cOeUl9Z9+URS+xT+KOjJwf5zR9KruhAyq1xiIXexo6/xW3/dv8oMHkr8TNASBNJ8fVnUhEZ0QjyvBeN5B9XZs/sFrgO1GOE36ydRX6GESdgSGdi/cmIhkqa70SKKTL5THsB7FohtZuu90Epro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=4HtQvZAR; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4202c2d397aso25821585e9.0 for ; Tue, 21 May 2024 05:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716296248; x=1716901048; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=0mlGZ+pjE3DBn4405CLRqOUEa255qvEGdzVfXh+mxBI=; b=4HtQvZARE9jitVktohUgYtPgNJYcmEdFg79dTLcQYN4bWopYjHZEw0KCRQ3Bk6kf+a EpTZGMfxm0B2isEjl1jNDS3671e0okAZyy0BC4chNzLn5XGfaVJOTiByUWf0ajMgTPoy Geq90oc6xfUD7CGr/iCdwHit9cD9khZtFE1fQO8CTcy7vTLY2xYjcUo+Eww/JUl/gTZe Z19KFvWGRlhAFoRKmyi1MFlGH+Lnb3/QKuDPJfzhnTBjS/A1EFMv0piNbGCJonC+Sbul VnoJAbP7hxajU8uhEECSbPCWZo80HqNf+HmCSLGxRx1h6HoECEiQYnV0Q/xFV9vHeb6e Rnug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716296248; x=1716901048; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0mlGZ+pjE3DBn4405CLRqOUEa255qvEGdzVfXh+mxBI=; b=LRZmTn8GWgTRgUHVHEOqEanNrt9qljOpFxrYE1SqErgB5YTajz6vPhzMc0Q0a84IdW ubZdptMVCqjiyxAmZczBvjccxEa2TOHSr89wvi85G80ZjYLUcR9C1h4ytMleNZ5+peRE dH60oXJeOtGg0W/znpp/aauvmwErIgHdtrm40ckQI6CcubOKjge1P+t2KhR7Rbscl1m0 Pi3tk/1/tI3xioLul6dlhfO/CM4r+pwr8GpO8SrPdpPgALBekGyGCkP3PBRCKD5AtLBS lkd1/Mf8xUEU0OUjp1Lzz0oUst2Mlux6PpiP9hTev0jD9Cm6a2uvANNOJGdlVyFTb8RR N0vw== X-Forwarded-Encrypted: i=1; AJvYcCUexOmVZDyocwoiphO23fQWGMAzMOODHRWLj0TCtkHschc6PQsXuUy3KP81ba9qX/6NXyEwMXPPFeJRMis6zUk6Z372Xr1adIWq8a1e X-Gm-Message-State: AOJu0YyK8VH8W/tfCl4KUXs3LEIVog7SpxegS1/gysXPUwgOSUKbCOTO I6fb0R1z8s5qA+ef8wcs7s2zi6rmhSVjzCE6iv5+8Ftpz5DHqv/spgnHEGWTAwxxFnC6OyyH+Eg UuDT0fku4pg== X-Received: from beeg.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:11db]) (user=jackmanb job=sendgmr) by 2002:a05:600c:a4d:b0:420:29dd:84c7 with SMTP id 5b1f17b1804b1-42029dd868emr708955e9.1.1716296247873; Tue, 21 May 2024 05:57:27 -0700 (PDT) Date: Tue, 21 May 2024 12:57:17 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAC2aTGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUyND3dxc3Yz8koKc0nTd4sq8ZF1jQ4PUpKQ0YxMDMyMloK6CotS0zAq widGxtbUAj/pzo2EAAAA= X-Mailer: b4 0.14-dev Message-ID: <20240521-mm-hotplug-sync-v1-0-6d53706c1ba8@google.com> Subject: [PATCH 0/2] Clean up hotplug zone data synchronization From: Brendan Jackman To: David Hildenbrand , Oscar Salvador , Andrew Morton , Mike Rapoport Cc: Michal Hocko , Anshuman Khandual , Vlastimil Babka , Pavel Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Brendan Jackman Content-Type: text/plain; charset="utf-8" Regarding the first patch: The actual hard work of removing the lock was done by Oscar, but I have set myself as author for fear of saying something stupid in the commit message that would then be attributed to him... Not sure what the best practice is there, please feel free to reset the authorhip to him (or I can send a v2) if that's preferred. Signed-off-by: Brendan Jackman --- Brendan Jackman (2): mm,memory_hotplug: Remove un-taken lock mm,memory_hotplug: {READ,WRITE}_ONCE unsynchronized zone data include/linux/memory_hotplug.h | 35 ----------------------------------- include/linux/mmzone.h | 37 +++++++++++++++---------------------- mm/compaction.c | 2 +- mm/memory_hotplug.c | 20 ++++++++++++-------- mm/mm_init.c | 3 +-- mm/page_alloc.c | 12 ++++-------- mm/show_mem.c | 8 ++++---- mm/vmstat.c | 4 ++-- 8 files changed, 39 insertions(+), 82 deletions(-) --- base-commit: 8f6a15f095a63a83b096d9b29aaff4f0fbe6f6e6 change-id: 20240521-mm-hotplug-sync-310ebbf34062 Best regards, -- Brendan Jackman