Message ID | 20240521-mm-hotplug-sync-v1-0-6d53706c1ba8@google.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C86F4C25B74 for <linux-mm@archiver.kernel.org>; Tue, 21 May 2024 12:57:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2678F6B0083; Tue, 21 May 2024 08:57:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2171D6B0089; Tue, 21 May 2024 08:57:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0DE9B6B008A; Tue, 21 May 2024 08:57:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E1E506B0083 for <linux-mm@kvack.org>; Tue, 21 May 2024 08:57:31 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5B658A062B for <linux-mm@kvack.org>; Tue, 21 May 2024 12:57:31 +0000 (UTC) X-FDA: 82142404302.11.7666BFE Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) by imf30.hostedemail.com (Postfix) with ESMTP id 8F90880002 for <linux-mm@kvack.org>; Tue, 21 May 2024 12:57:29 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=H6vD0AL0; spf=pass (imf30.hostedemail.com: domain of 3N5pMZggKCNYB24CE2F38GG8D6.4GEDAFMP-EECN24C.GJ8@flex--jackmanb.bounces.google.com designates 209.85.221.74 as permitted sender) smtp.mailfrom=3N5pMZggKCNYB24CE2F38GG8D6.4GEDAFMP-EECN24C.GJ8@flex--jackmanb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716296249; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=0mlGZ+pjE3DBn4405CLRqOUEa255qvEGdzVfXh+mxBI=; b=6jZV2TR8zdqPOb8I8qZCF03wXpuqsSbfvEgfUQGX/n4186BoUiE+C4LII0223i7k8iXJw/ EAf25+JqpnjpimCrls8M69h49z/N/S8CM1u7Sdmc27IBtk5XmMfB9XmRi0YNWPscwRl/LI KITjQ9VcxflibBLRTucReJkL36LshOA= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=H6vD0AL0; spf=pass (imf30.hostedemail.com: domain of 3N5pMZggKCNYB24CE2F38GG8D6.4GEDAFMP-EECN24C.GJ8@flex--jackmanb.bounces.google.com designates 209.85.221.74 as permitted sender) smtp.mailfrom=3N5pMZggKCNYB24CE2F38GG8D6.4GEDAFMP-EECN24C.GJ8@flex--jackmanb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716296249; a=rsa-sha256; cv=none; b=JpFxpKnRTG1B6J5Pb208Q3s6TGqFaQCG9MtsNhoF16VUM4pHFZ3r06GqYIu5vx5wPsuexu J4qDlQcT1tLKZxXEP3VVaH54BY/UaQPL1IziizPOmAz5n1ETlavloJu3Nq6Kz7QYqR9hZm CwdxwP6FiA+7guJD5V42Ai6HFpWajjA= Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-34dc7b83209so7660954f8f.2 for <linux-mm@kvack.org>; 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=kvack.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=H6vD0AL0wFNcJYX4id2vcFuW9682yXFXKi4+e0oPi5jRgWD2Ev9Mi55quHNWp7Hpb+ stMHD7dn+lE/kR4K+/1qrbD8pmq+/P8bCc+atLf0sLr/ilovAo1eJe3kJeyRfgL62zjO 5b50G+uZ7Hr6NNbbE9YjlaXkJH38ncO6n6wWoKT+wia+/uHgGmyP5Ud48bcV1RKyewnn 2KBsiUvEeCT6UAaeNDL7z8isY9jjCC2VqEPzYvQvm4femIAfV8x56qAVFHjfx+98PYMm jfSLZ+5vEEa1VOSRGgshRCBVp/dje6PEcXpKMTHbDip74H8qn8KvcFNOwWzFh3MvPBRv 4e9Q== 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=YLUuBSGgH7ObRNsy/4fUuIonJDwbmJa3ALr0fHcZ61YiEwT0cD2nSURJ+72pSf4Uhh LnyOlMBzG18cQpbUNSJEWKcfWomdIh+iRF5j8JGcqSUnQH1fbdGTwqLerSh1JdAWQaPw 7rr14T1Svo34ONmXzP4evg3HAEYbCkz5iofqOm68JV60UlXOhDK7abVgUGWDB9+V8rVu oepEDGMMDyRXYpqKlMaUYIU3j4C9QUPsynXGLa1XTkN+2yOAPjCBzUFjsiupHF7QKWM8 6tnkF3+926F0oo545beUbhqD9j3/OMmqq0/BkmbNZLK/6iVMJDR8NrC1nGdIOYlV8sIY c9jQ== X-Forwarded-Encrypted: i=1; AJvYcCXlcCyM/2Q+TBVp9G/4KIJpM41XPaOBAgrSRVxYaOR56pi8SQqZ7mKj8uQM7I6cvhKUH6YOXpM6jNoJ4tN/B50GEd8= X-Gm-Message-State: AOJu0YwOe1iqcP3lgNrku9NQjAn5sOqD98M6KWTjSisnOxgbF4d7PWbZ qSwWyQLiEJ9LTIZDxBPGzmx1eJLe40Gztoyph1l/BWOcUhz+imbcCu15eeO3C4HaQ2hd/eZfT6B iuv9yUlRQug== X-Google-Smtp-Source: AGHT+IEoB6ttY86w8OlDJCcJUCo8TVisUJYdX7DKJR/Jmiih5thWUDcjGWVZ4HSKbID3eaG8wrCuAaiwiIa7Mg== 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 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 <jackmanb@google.com> To: David Hildenbrand <david@redhat.com>, Oscar Salvador <osalvador@suse.de>, Andrew Morton <akpm@linux-foundation.org>, Mike Rapoport <rppt@kernel.org> Cc: Michal Hocko <mhocko@suse.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Vlastimil Babka <vbabka@suse.cz>, Pavel Tatashin <pasha.tatashin@soleen.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Brendan Jackman <jackmanb@google.com> Content-Type: text/plain; charset="utf-8" X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 8F90880002 X-Stat-Signature: af93ezzbump785mjagzpzpmynk83kwhs X-Rspam-User: X-HE-Tag: 1716296249-806918 X-HE-Meta: U2FsdGVkX1/1N+d6TwH6zj1foES6vm2/0eXfbeveu5eFVtnKyLwQq+iWvX9ACcVngIKD4iwef6buxW36SVOanzTTYPktXEU1YdPn3Fy7jbDnsXt6r2/hZPOmyI6eZeDWP3lFmk1CBfrS/ImHzDCt8FkUtuiFLkjx/aZdPeVIlQ65gW0abkhfWuYx2sIrO2vAiypjnQiHZJUd+UMLS+mO4LTdWs2elLrP94uKlYO7pGpAnIKee8vaYA7bgaziq0/949jcaXLd+AAZ2OUVJwDDMdHOGHd5WZqCirIKWDpSf3CWRzCGWWxo4uhhevhz6hnZcIRXVzecM5pwzGHasfyX2Y86yKe46tuZ9wS5L+90JaCElYD9TKmud4IoYWG3jWPyVdW6kzA+Aps6vfC1fA0r2Y5xWds5H88COw4STprX14hRnQh2wJJYToZDCQOCnfB5xOq2c1xJgAlL8Cp93mkPvnVQVUBhUlJaGzyFz8XareLqwK+FMPEA2D/a0Bi96nkwO37xrmSQvf38df+/NDjYFm+z9BVm++iAclTGTAphAfMcjMDZ8SWl7ICW9lco8k1cbcN6HpSanhjoTsGCNTC2m7mYQhOs13D8+royFD18gU8h4w3M7pl6EndZwB73JBH5cMfHneYrwe26NSpkUSAy+FYZnVx/3idT/qYjerZxDoD8BxRP+30x+R7xcL6oPzup8d28S8ot1lTN4pmujFDZyvTJEUV5KzskM2os6CtBvD69JNtUqJzR9WjqVynghLnGu+CBi6oUr6z4xaGGt6zdyE5+2tFvVsALrnIKaoHH9NcRFrJrtmZ0LR8u0ff17X/CT97I12JDYm82zFtqtIUHXReB5EV2UubnerbFAVC69IXesXejm8XdkV8kT9S80w1KOykpE1YZgLK42V3TxQIWQmBlzvBePrzP6VSlw1hV9KGsOS++srfXn4KcbuGPOG9cxCUAuEEhGc0zy33vw5x jv7x+98B mptQJE60mEE2fCZqcM3X9RfLRcK5J3flLQeamZtiICujXtMutmRh5l4NNohsayexFy2hWxhZpm7pCZnt66nF36lNMmF3m7ws4MBrsc9ClJgqlp2MOF/dpE3XUA84l1+HN0+2cSTJJIDIJ+I6VD6LxHZj4u24cD7uOaFSAHdibj/iZGu67txdx8VjoTig/nVxZv/cKqcjgdl0Gf/qNbQLHyFlSYrhg0o0f2e5Fl+NM1+TgenFagZtUFQgSLG+jYMl1vEbmoZ7efRMAHXFir86YmB/6vqwCS8SHFH/PTKo9kj5mzZqzjUd3SsqNdS8yARXaTvr+9MehWEOWl3bf9FBE9BHDun3kBx9J4vQelJJbq072LCzYhuqifZA7GZ6J1l1fgoJadlvCqWmG8xTvDiU+Wz9LRbaWBL4ZauGxvyJ1g6k3xecDYDNRwNB6gHQ7nNYi02RMyQGC6jCapqzRH0ON/mxOeAMB4zPwqQQnoUO8I13dHtovs9D8VhnhuCnDtqpEOtF3Nzsf0jzIL3/GOLXyRSo/yw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.389424, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Clean up hotplug zone data synchronization
|
expand
|
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 <jackmanb@google.com> --- 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,