From patchwork Wed Jun 2 09:14:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 12295093 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 911F7C47093 for ; Wed, 2 Jun 2021 15:18:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 48E24613D0 for ; Wed, 2 Jun 2021 15:18:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 48E24613D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5A0EA6B008A; Wed, 2 Jun 2021 11:18:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 529C16B008C; Wed, 2 Jun 2021 11:18:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C97B6B0093; Wed, 2 Jun 2021 11:18:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0071.hostedemail.com [216.40.44.71]) by kanga.kvack.org (Postfix) with ESMTP id F03C16B008A for ; Wed, 2 Jun 2021 11:18:33 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8FD19824999B for ; Wed, 2 Jun 2021 15:18:33 +0000 (UTC) X-FDA: 78209140506.22.2112D67 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf22.hostedemail.com (Postfix) with ESMTP id 02C64C00CBE8 for ; Wed, 2 Jun 2021 15:18:19 +0000 (UTC) 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-out1.suse.de (Postfix) with ESMTPS id 108B5336E9; Wed, 2 Jun 2021 15:18:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622647112; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc; bh=+mrc6++6WowrRrzI0TFBvSWZxYHBvzCg6qyOdVwJT+I=; b=P/l32B3moMloUZry2OLrDmFGSICn+UwgN/YI7h2bcMtBwIbDMDU29jQpy6X8qmEeygauvY 9AXKHt6yRQcmxVIviCWMMLkOazy2yTr9KbjGXhCRGiyJg2Pq2v2nxLOuhdjOzH9J3PvNX2 ta+7UyPCGLVVdJk0y+8/1GGfzd7vWCw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622647112; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc; bh=+mrc6++6WowrRrzI0TFBvSWZxYHBvzCg6qyOdVwJT+I=; b=qm8lA7JhSr+Rz3HQvm3OuD2ukMyxFgu9GaE+ypLPloiJTAVQs1mPFDJeLl7jpGXjKlzCH+ +92lpVDDB3ha/9Cw== Received: by imap.suse.de (Postfix, from userid 51) id 05A2F11CD7; Wed, 2 Jun 2021 15:28:32 +0000 (UTC) Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 3092411D1C; Wed, 2 Jun 2021 09:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622625308; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc; bh=+mrc6++6WowrRrzI0TFBvSWZxYHBvzCg6qyOdVwJT+I=; b=BmPshbbJFOD35THzu+13J1d+3d7G3OQ5iq82DNDZVKQn65bH9khU4Pw/kM675AlL44Lh3U lf4/3ymCXHXyG7LpExx8Elq+gv1IJvk8f3//yhlFzf4MBjqyF3IJw48yUY1BOMF2ZDqwlw q7KsZiOjokj13qmjBM5Pk3yT50QcI6A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622625308; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc; bh=+mrc6++6WowrRrzI0TFBvSWZxYHBvzCg6qyOdVwJT+I=; b=XWYbN4hjXRzM4bk5v7D+cpn63OB4U1TvN1dKZ5FbKWZX8URQw/6jZevcRf04uJ4MQiEaQF 8WA4CPtKx34cB5BQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id KrtyCBxMt2A6HgAALh3uQQ (envelope-from ); Wed, 02 Jun 2021 09:15:08 +0000 From: Oscar Salvador To: Andrew Morton Cc: David Hildenbrand , Dave Hansen , Michal Hocko , Anshuman Khandual , Vlastimil Babka , Pavel Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH v2 0/3] Memory hotplug locking cleanup Date: Wed, 2 Jun 2021 11:14:54 +0200 Message-Id: <20210602091457.17772-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 X-Rspamd-Queue-Id: 02C64C00CBE8 Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b="P/l32B3m"; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=qm8lA7Jh; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=BmPshbbJ; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=XWYbN4hj; spf=pass (imf22.hostedemail.com: domain of osalvador@suse.de designates 195.135.220.28 as permitted sender) smtp.mailfrom=osalvador@suse.de; dmarc=none X-Rspamd-Server: rspam04 X-Stat-Signature: 5i7su65b37f4ce1eencd5jsmuhqk89xw X-HE-Tag: 1622647099-725088 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000142, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi all, I decided to go one step further and completely rip out zone's span_seqlock and all related functions, since we should be ok by using {get,put}_online_mems() on the reader side given that memory-hotplug is the only user fiddling with those values. Patch#1 and patch#2 could probably be squashed but I decided to keep them separated so the intention becomes more clear. Patch#3 only removes declarations that seem never be used. Given that this is a much bigger surgery, I decided to drop any Acked-by/ Reviewed-by. Oscar Salvador (3): mm,page_alloc: Use {get,put}_online_mems() to get stable zone's values mm,memory_hotplug: Drop unneeded locking mm,memory_hotplug: Remove unneeded declarations include/linux/memory_hotplug.h | 38 -------------------------------------- include/linux/mmzone.h | 23 +++++------------------ mm/memory_hotplug.c | 16 +--------------- mm/page_alloc.c | 15 ++++++--------- 4 files changed, 12 insertions(+), 80 deletions(-)