From patchwork Mon Nov 7 17:05:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlastimil Babka X-Patchwork-Id: 13034901 Return-Path: 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 68CDDC4167B for ; Mon, 7 Nov 2022 17:06:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 07D476B007B; Mon, 7 Nov 2022 12:06:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E82CE8E0003; Mon, 7 Nov 2022 12:06:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CD5D16B007B; Mon, 7 Nov 2022 12:06:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id BF9886B0075 for ; Mon, 7 Nov 2022 12:06:00 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8054C80E45 for ; Mon, 7 Nov 2022 17:06:00 +0000 (UTC) X-FDA: 80107273680.06.DE5DC67 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf18.hostedemail.com (Postfix) with ESMTP id C857B1C0010 for ; Mon, 7 Nov 2022 17:05:58 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 45E43225FE; Mon, 7 Nov 2022 17:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1667840757; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rn9xQxF1SiqI3hq3m8+HEoFWEg4sEnRP9PimT44lp+o=; b=0+UgC16voEobAqhc3TDmlKXe49ffMkXz+JYFLH8Q2VdizXmpUKArwb4F0qb9ogZsQDV7L9 wW88bSLIej+5QA0d0SkjpYx20LpK/CK4yjk5exZLnoBvUKdhpH81dfleDuEf+JTU9ae2XU qpb/UxXIPhrHnw8QddJU2nlr9N6bVeY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1667840757; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rn9xQxF1SiqI3hq3m8+HEoFWEg4sEnRP9PimT44lp+o=; b=BthGwYjhGhVwuVLPtrRxURFYyQF/G51vCTt54KbN5k/VQTH9Bquv9SYzU8DJCQrQ/5P/ME vcLfqjRaY89zTbAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 17DC113AC7; Mon, 7 Nov 2022 17:05:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9TkwBfU6aWOYfwAAMHmgww (envelope-from ); Mon, 07 Nov 2022 17:05:57 +0000 From: Vlastimil Babka To: Christoph Lameter , David Rientjes , Joonsoo Kim , Pekka Enberg , Joel Fernandes Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Roman Gushchin , Matthew Wilcox , paulmck@kernel.org, rcu@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Vlastimil Babka Subject: [PATCH v2 0/3] rearrange struct slab fields to allow larger rcu_head Date: Mon, 7 Nov 2022 18:05:51 +0100 Message-Id: <20221107170554.7869-1-vbabka@suse.cz> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667840759; a=rsa-sha256; cv=none; b=E0BlkA0kCymSvyjrbEQSCmUU7csW9l0kO7hlO8yFSKwfKK/N3lvEu0FrKxW11bI9oYX9Rj opywmFBjoqFsKmMm0fxN/scZrbNFv/vXWGEvnMnqY7w84Eeo9wyoZDm98fgcbV6/tfJpP9 FZvSMKvJkTjDl8/CBEsXCT/HGzuoVSM= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=0+UgC16v; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=BthGwYjh; spf=pass (imf18.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1667840759; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=rn9xQxF1SiqI3hq3m8+HEoFWEg4sEnRP9PimT44lp+o=; b=RRZp/JKFIs7WHXgvzWJ/PRVq4syvjrA3sF2yL2U5T+apgKkNq/NsasujymbHtxCZ6B2D4U Zn7sOeABwS4NOIEGHG1GelumLU5RuiLSfBpIRAoIqjhbaLb6uRMTalPmdIuLYpxb7+1zlG K8xIVT+VgZ6acKKOR/duYHeNGePYawo= X-Stat-Signature: mkc6d66ypzjgg8m34b5bdu88u34mzc3e X-Rspamd-Queue-Id: C857B1C0010 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=0+UgC16v; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=BthGwYjh; spf=pass (imf18.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1667840758-298959 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, The previous version (RFC, no cover letter) is here: https://lore.kernel.org/all/20220826090912.11292-1-vbabka@suse.cz/ Git branch is here: https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git/log/?h=slab/for-6.2/fit_rcu_head (also in linux-next since late last week) The rationale for doing all this is in patch 3 - I hope there are still plans for the rcu_head debugging, Joel? The previous version was in linux-next, which brought crash reports due to causing false positive __PageMovable() tests. There were several attempts to deal with it, as explained in Patch 2, which is an updated version of one of those attempts. It hasn't been formally posted and reviewed yet, hence this posting. Thanks, Vlastimil Vlastimil Babka (3): mm/slub: perform free consistency checks before call_rcu mm/migrate: make isolate_movable_page() skip slab pages mm/sl[au]b: rearrange struct slab fields to allow larger rcu_head mm/migrate.c | 15 ++++++++++++--- mm/slab.c | 6 +++++- mm/slab.h | 54 +++++++++++++++++++++++++++++++--------------------- mm/slub.c | 26 ++++++++++++++----------- 4 files changed, 64 insertions(+), 37 deletions(-)