Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1221298pxb; Sat, 4 Sep 2021 03:52:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+f64XT6GP8wiaheflGkLsff3x2R+rIb7CAutpYcteb0fezQDw5NqhAlCBuSMx1CLdDkln X-Received: by 2002:a92:b301:: with SMTP id p1mr2136546ilh.10.1630752768546; Sat, 04 Sep 2021 03:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630752768; cv=none; d=google.com; s=arc-20160816; b=En5tvcnNGmV1EoAKyjH8/ffvK34eITxE8j/i8TR8SKq1FjQv8sE7Amtgje/brMgu4q 0qWnj3UYiPyZxEOeLJJThU/Ui+ndk+TBosa/Lfqiz/2Jt1ap4ceDDyhCkux7JvziOeOx h2RN0r/s/1vPrdLz7YwDh8BGCYf2ebXO2UUD621NmKVo/PfWeh8DTXJaYj90f/jaBkbR UCGyNYjhV00wNxXt2jkPvtAhXwBmKITmy/mPgEiNr8n+w+GSZNxgu0UFNXG1K+G2YFHu k1TphrS1i/EfvwUSoz25oK3J9OVyk61d1ud8RpmuPNMX9MUYCOPe5GDC7T3Doo7H8KWC 4dGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Kvmkd4Q4DBA+81R5ppIXUcDQcJXQz0IDCyEAsW4y0NA=; b=pvaPBozIeRqwAUoOqJpC8rpMu6fpvXTksiEB6uPScb65woPlRlJnBugLADk5rU0R36 0ZLSMgiefvQTqHLw/uaPTag+Shw9/uWOWfD/smp3kX46V752Zr5joTephXitVOGfsWP1 enzM/okI+ekKEOKAIUVnIX775R1QrLpNLjOplGkoH6aaqL9ZukrkG9ZFPvmdhVTVPSG0 LzEHyyVu4QonrraToCgK58G9Hm6AqENu1nc6IqCjAzQc0siWwtFOK1hFhQjDm87rE7wf 5ez6Mm9wyh9TsnSlFfQNeGKNlk0T0qqN+Dkxj5x0jmHchPT60bqXntglA713euDUR2wJ OTuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=M82h5xU9; dkim=neutral (no key) header.i=@suse.cz header.b=pgamaKZV; 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 h10si1792063ioe.21.2021.09.04.03.52.37; Sat, 04 Sep 2021 03:52:48 -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.cz header.s=susede2_rsa header.b=M82h5xU9; dkim=neutral (no key) header.i=@suse.cz header.b=pgamaKZV; 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 S1351100AbhIDKvM (ORCPT + 99 others); Sat, 4 Sep 2021 06:51:12 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59604 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235983AbhIDKvM (ORCPT ); Sat, 4 Sep 2021 06:51:12 -0400 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 747E122683; Sat, 4 Sep 2021 10:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1630752609; 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: in-reply-to:in-reply-to:references:references; bh=Kvmkd4Q4DBA+81R5ppIXUcDQcJXQz0IDCyEAsW4y0NA=; b=M82h5xU9rz0Kaj1hMPpuKir09OA9oEVxcG4azJpbzdHzGtZ1byg6b/h9hM+0MoUyqgVFei ev3PLB8k6ehLbQZptaRbgFEd1XRrDAq7I249+lwmhMVyYw96A520VXSBM4EU0mIhpxS09N vfZC6Bv1Jmxd/Ewhnr/jUJxa7tBbHyk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1630752609; 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: in-reply-to:in-reply-to:references:references; bh=Kvmkd4Q4DBA+81R5ppIXUcDQcJXQz0IDCyEAsW4y0NA=; b=pgamaKZVi5EQ9iXiEKbbACo8dfVZ0PYvGmxR4/JMrJ00SyggyPWgBpphevEyknZCgqeRBG BlrXn1KOlBTtNWAA== 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 4A4A713A2C; Sat, 4 Sep 2021 10:50:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qNmAEWFPM2HoUQAAMHmgww (envelope-from ); Sat, 04 Sep 2021 10:50:09 +0000 From: Vlastimil Babka To: linux-mm@kvack.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: Andrew Morton , linux-kernel@vger.kernel.org, Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Vlastimil Babka Subject: [PATCH v6 01/33] mm, slub: don't call flush_all() from slab_debug_trace_open() Date: Sat, 4 Sep 2021 12:49:31 +0200 Message-Id: <20210904105003.11688-2-vbabka@suse.cz> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210904105003.11688-1-vbabka@suse.cz> References: <20210904105003.11688-1-vbabka@suse.cz> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=822; h=from:subject; bh=pGY7AAbRUOvOaavAoErs6AM4Lcn1GBH3g1REQDNPySM=; b=owEBbQGS/pANAwAIAeAhynPxiakQAcsmYgBhM07+JEDh7KnXxzJDU+VcTlsdKd7YjMnZfSqC6qP3 1n0GgYOJATMEAAEIAB0WIQSNS5MBqTXjGL5IXszgIcpz8YmpEAUCYTNO/gAKCRDgIcpz8YmpEN5pCA C5y7vGRR+edojJ+ajf1PpoAHz/WLaF8X/4mzl0yr10YYirJtFBTUKHt3beNcMeqLbqUyhB82kB3pni 481iN6OX4N5eGd0DTfs5q7VyskBd6M4RhE0XRv3Xly/40AOMyWf0OWqr7utIXEoSL+XOTjw21He5dC /GBcBqktbFTBa4CZlaEQr+UZX3C7ZGHRC/8JV7n8TFSxv7F4Q03aCsHFTOiEDPW9qldFZe6ia6LJJj TRg+gxR2J8ailfVtkP5RRlAJxRfbbF5iVjp1yzSjyo5fRbdo2f1euzCDE9Y9LxMUG2I69Cdoyi4xVT 6EF+sumhuJVZdxV4GNwA+E75+Kc0I6 X-Developer-Key: i=vbabka@suse.cz; a=openpgp; fpr=A940D434992C2E8E99103D50224FA7E7CC82A664 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org slab_debug_trace_open() can only be called on caches with SLAB_STORE_USER flag and as with all slub debugging flags, such caches avoid cpu or percpu partial slabs altogether, so there's nothing to flush. Signed-off-by: Vlastimil Babka Acked-by: Christoph Lameter --- mm/slub.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index f77d8cd79ef7..f6063ec97a55 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5825,9 +5825,6 @@ static int slab_debug_trace_open(struct inode *inode, struct file *filep) if (!alloc_loc_track(t, PAGE_SIZE / sizeof(struct location), GFP_KERNEL)) return -ENOMEM; - /* Push back cpu slabs */ - flush_all(s); - for_each_kmem_cache_node(s, node, n) { unsigned long flags; struct page *page; -- 2.33.0