Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp662712pxj; Wed, 2 Jun 2021 08:22:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwksqgrDajVm2Wl6md+oSryuwYbaSlAsVsrih02LoU67XQqDzpSqLv+tc3XNUSm3/HWphVm X-Received: by 2002:aa7:ca1a:: with SMTP id y26mr17988993eds.314.1622647340171; Wed, 02 Jun 2021 08:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622647340; cv=none; d=google.com; s=arc-20160816; b=EO6StoGMEYNkvrZ2Zaed/2NB86Gg5ggMQ3ZVahTtdLWDYFdJyenHmi69qyDoehAf8W Q180TQl6tFB5OPDkTmQn8LQq81nplC9BZfdKmSYUFaaMuwPlOhhrAymvRE5d2a0IhIgb 9owGeA5CQ1vN2Fgr/Bfkbdo6CT4VLQpKaP5rizvdcBp6DW7IQOGWXsWDGvNyf6yiHIUo 8jqulIgQpFFoIwxX0V7wAawNWE+HDwaUKIDxogRwCN34644ksIyk1D3zPb+jpz/CWr0i c5XdWEcnRPrbJW0O/KEx5B3+2wrIMdAEsbuweWjH/qWYn+FUEsABBIyZ1F2brtCpMCsw vozg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=+mrc6++6WowrRrzI0TFBvSWZxYHBvzCg6qyOdVwJT+I=; b=iuTHY1GgmSUZdwr24ZfAcMVHDRekFXTWbozGoXSMUweA+4tx++dsyFg0RCndqbYOBd OHOS8mv3LkeZctQM7kJx6deDm5loVqqMtz9Vv4+RkbybSOoFc/DaOX4x9TiCPwIUvfX3 0/jZOAv3+F0rLyW5bkQX/a3kHXz1ygS77u7RVUjmUB4tgyAcNKs/j96Kh64tnkWrzCPj uXsbSXBrbYQhuW0tMzn4ZE8ecjd2VQImYtjo4C6jbG8zqNd3bCUM1L+M6bfWjA/9lj4g oUxONZBpdp0VE9QPtBakmYS8rhreK17+eXDShPV75V3odvAWVtEQtuTX/P0p5fGoiQcE AWSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="P/l32B3m"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=BmPshbbJ; dkim=neutral (no key) header.i=@suse.de; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si68243ejj.647.2021.06.02.08.21.57; Wed, 02 Jun 2021 08:22:20 -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.de header.s=susede2_rsa header.b="P/l32B3m"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=BmPshbbJ; dkim=neutral (no key) header.i=@suse.de; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232499AbhFBPVU (ORCPT + 99 others); Wed, 2 Jun 2021 11:21:20 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:33770 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232250AbhFBPUR (ORCPT ); Wed, 2 Jun 2021 11:20:17 -0400 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.16.3