Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5153629pxj; Wed, 9 Jun 2021 10:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIuM+SeFt0ko/rfCK0dqMLMYcaTltZzvStd41vWLuCFfDnNF65k9EvsyChxnEe1TQTt3Eg X-Received: by 2002:a17:906:914f:: with SMTP id y15mr926758ejw.354.1623259174691; Wed, 09 Jun 2021 10:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259174; cv=none; d=google.com; s=arc-20160816; b=wpsKIvGJJ/MJIs8Ep0S56y4EPhgw6P52KsdOc1VVsv8iN190DFLlvSAMj7PgCH87Kh xVZZAovJFWDV9y+yUJISseQe8UovbgCRhE3D8o6i0NR3br5sd4oxT2oS5INkG89Qy5YK +HlaAEr/pvDCFRO951xzR0xKdr3ONfLsm0Y5qPiRBTETEBs8naAtEwc0e6rrJfhrSLE4 mZxePdjkxFdAFyd7IfFl1BE32YUMGURq/I8vXtfrrzeTRVZ2SC1ukJns85GQ4fVZ+RLk 8MBOvZlnHBNp8Sas6Ea8CsjM9xHaxyQXoMNnp5YWVZAsrOYP2/Efe6AfsT0PjX6LWJfs 2hqA== 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:dkim-signature:dkim-signature; bh=vEDtjsnB/VDzYc0ii5k8c4+YLz6GPrWXLWLa4QOy8Fg=; b=d/Mkr+uzWLDWwRLwI1I3Bk119Yxg/QosaRnVKFLUTqMRi11ZimXfxvQz6QTlAVPkKG J42dPqLLOpSC91DCzxaG7YpWtwg3+LL9pJ3wjC5hqvRQZhklTe54uJH6uoEqCF67p1VE k8w2MgmJfpTk0GtOdlQWleui0mVyolBpm2L8pJ4554RTwwU9u5waCPJRSpLhG2aM/+jn FceMhYlQdtpQV9OHCh5fsVdb2cCJa/9zxcOnysBW6sWSaL4HOIvi6Ns1WtEjeiwFKOxh k9gBiak/+EsyWLyiWsgL63H1TD2k9q3LjdKNi0I056DFDpdEyOYXJR+YUXWNl/tsoSNo tEDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="IN8TwQl/"; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="IN8TwQl/"; dkim=neutral (no key) header.i=@suse.cz; 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 ca23si180360edb.521.2021.06.09.10.19.09; Wed, 09 Jun 2021 10:19:34 -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="IN8TwQl/"; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="IN8TwQl/"; dkim=neutral (no key) header.i=@suse.cz; 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 S239205AbhFILlh (ORCPT + 99 others); Wed, 9 Jun 2021 07:41:37 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:54560 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238745AbhFILl1 (ORCPT ); Wed, 9 Jun 2021 07:41:27 -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 B4A19219BC; Wed, 9 Jun 2021 11:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623238771; 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=vEDtjsnB/VDzYc0ii5k8c4+YLz6GPrWXLWLa4QOy8Fg=; b=IN8TwQl/nBF3IjB1x1wI2UnNVr4f2PMGC+TK64rkhGBc2qSF8AFsivay09xFcheo9OVNnb EyLzyuilsT1tTjlp2yyxsvWQb58GMdNR+OwaJ0TRA1eK8O/e7IFrccI/kDY37vtaVHZwGL s8ecWHWDT7kuc2g2E1LONThysPQHrZc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623238771; 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=vEDtjsnB/VDzYc0ii5k8c4+YLz6GPrWXLWLa4QOy8Fg=; b=d08Kapwu2aJQczRX1Wiq9dop5yCfAX59yWf5r9X5g8KMXpk96Xqof3b8tqDspWR+X5J7f/ 8lm2LZHonHT3E8Cw== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 7022111A98; Wed, 9 Jun 2021 11:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623238771; 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=vEDtjsnB/VDzYc0ii5k8c4+YLz6GPrWXLWLa4QOy8Fg=; b=IN8TwQl/nBF3IjB1x1wI2UnNVr4f2PMGC+TK64rkhGBc2qSF8AFsivay09xFcheo9OVNnb EyLzyuilsT1tTjlp2yyxsvWQb58GMdNR+OwaJ0TRA1eK8O/e7IFrccI/kDY37vtaVHZwGL s8ecWHWDT7kuc2g2E1LONThysPQHrZc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623238771; 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=vEDtjsnB/VDzYc0ii5k8c4+YLz6GPrWXLWLa4QOy8Fg=; b=d08Kapwu2aJQczRX1Wiq9dop5yCfAX59yWf5r9X5g8KMXpk96Xqof3b8tqDspWR+X5J7f/ 8lm2LZHonHT3E8Cw== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id WLXrGnOowGD6XgAALh3uQQ (envelope-from ); Wed, 09 Jun 2021 11:39:31 +0000 From: Vlastimil Babka To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Peter Zijlstra , Jann Horn , Vlastimil Babka Subject: [RFC v2 01/34] mm, slub: don't call flush_all() from list_locations() Date: Wed, 9 Jun 2021 13:38:30 +0200 Message-Id: <20210609113903.1421-2-vbabka@suse.cz> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210609113903.1421-1-vbabka@suse.cz> References: <20210609113903.1421-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org list_locations() 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 --- mm/slub.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 3f96e099817a..f928607230b2 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -4839,8 +4839,6 @@ static int list_locations(struct kmem_cache *s, char *buf, GFP_KERNEL)) { return sysfs_emit(buf, "Out of memory\n"); } - /* Push back cpu slabs */ - flush_all(s); for_each_kmem_cache_node(s, node, n) { unsigned long flags; -- 2.31.1