Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1230965pxb; Sat, 4 Sep 2021 04:08:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtkgb68lYBeFODNEw9LGFC/zZ602oiQmhBS/NVjBkTMNsEylOygXbMQYVW94Azcl7zXnwo X-Received: by 2002:a17:907:75d9:: with SMTP id jl25mr3663125ejc.4.1630753701093; Sat, 04 Sep 2021 04:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630753701; cv=none; d=google.com; s=arc-20160816; b=OnJAJ0jjSGu8koxVcQkNs6OQpY75EuA1W/JwO+j7UIvU56Eyeza+2pYYZvXLlM3piW 5PXNOUVmIeK7fqvEDz2xqQ1s2HNpcUu3N4gmWnm6P47cvkaZTjpOek9C6am8KSTBU7Ui Y2Y5Zg6o4QgeQDIkDhntCfa8s43oebBJtiM0jK9qvd0mnyvztgb1gfaXUDM0yvJkemxF F0DkIEWMmWdIONFKuRF537abj38j9wsErBnXpdDbPxoNTPolErXui9zh3m5uVdBhp4/+ oMS2FPzjhdDRJEpGDUsO2hJMLEP8IRmjXP8AjN9ZJ1AkryrJ/96rXoaH0ah0AfIGgzdb kPSw== 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=p1eRZMhxY07/cPHYxD57xDLVN35T7tHbH+Nv73UiRlg=; b=B2z4p6347ao3ACrdpSmRhSZDOQq/GFZjuRspy+851r7c/1mAF7GZIB3XEQkJT+2t/l 9P8eqLV/xIxXD30YjV9q8JNmX5q3LpmCLX7/Th4B0oMwLI0bTJcO5TKPClbwfh5ps8rl l3OhIMxwRNVOcoyvgcPWpKEwA+PKotyffI+t8OrAPu+fOGXpS/g9P+YWqaZ0Eh3llWl7 n6Ge05RKk7JEbgAzrJr0qFpcRts8Jjp5BOy6kxqKi02diFvgq6InqRDXZwqjpN2dUrkb mzDUdWhaXgILOT+jMf2qvqwobE7y9aPO6/7/LWIB5ZET6KdH6CU5JSwDw3Dl9oPhEneF FtFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=kh0s1C3N; 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 a9si2227777edj.313.2021.09.04.04.07.57; Sat, 04 Sep 2021 04:08:21 -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=kh0s1C3N; 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 S1351325AbhIDKwz (ORCPT + 99 others); Sat, 4 Sep 2021 06:52:55 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59752 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351143AbhIDKvQ (ORCPT ); Sat, 4 Sep 2021 06:51:16 -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 E7DDF226A0; Sat, 4 Sep 2021 10:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1630752613; 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=p1eRZMhxY07/cPHYxD57xDLVN35T7tHbH+Nv73UiRlg=; b=kh0s1C3NLo2xaYWqNEJRExoRSdJSYnDPq5OQNsKf2Y25bqL2N2jA1LonISQiei1Z0SaNcu 7KrBeieWjfrwBnSbmujn7qbSm29xdfvS+WVOBIrPcPCsOm933Kk8ym7g60NK4XHqfQSMqs QSyQDYyh7lOAukO4TQ67V6bHpLcZGAM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1630752613; 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=p1eRZMhxY07/cPHYxD57xDLVN35T7tHbH+Nv73UiRlg=; b=ItTlZBMOkEtNE+JVVUIl5J4I/Q56u+Dwlw/1W0t4iW6nSQkQOvCINA+7o/lzww8W1edi4j gS70YnzRxMj0VHAA== 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 C0A5C1348A; Sat, 4 Sep 2021 10:50:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id KF5uLmVPM2HoUQAAMHmgww (envelope-from ); Sat, 04 Sep 2021 10:50:13 +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 26/33] mm, slub: don't disable irqs in slub_cpu_dead() Date: Sat, 4 Sep 2021 12:49:56 +0200 Message-Id: <20210904105003.11688-27-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=840; h=from:subject; bh=h6nzJhDgk2ZvszSdJHL3MX5oVhHKmynUK46JJaaagsE=; b=owEBbQGS/pANAwAIAeAhynPxiakQAcsmYgBhM09HKkn7kB+0dVpcTh24XH7mRYHSRPgStKCOwJny jkAD8wGJATMEAAEIAB0WIQSNS5MBqTXjGL5IXszgIcpz8YmpEAUCYTNPRwAKCRDgIcpz8YmpEISVB/ 9cq1cyrQj48CpGgFbC6pCfD5peOzqcZ0tLTqXRpZqn3y8qjqqjKeTbzaeqHuhWP72pHqyCjUsoH8PF VEVRSwlpKWHxm7TWJYmb73ErRm++yX5TRyqZUxXBQ5Bf3CMTOKmmPO15oSGLnBY7yyy5E03PNabf13 HXb/jyP10CPQBDTSQdDI8jFlA1iosQOgPW6xcDvFgWmrrSV2d9sBcDrSfLwPgVNQKm8QtHuelufGpq wFx0/JvaSkt/uecRBnER+GQNTlUiy20UTvCSHkq+QUVe76x+U9YMFBIrA16wsFQiLFt1oV0XsfhiFf 3e0/+znMSgllxam7bu/LQPwJNogoKS 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 slub_cpu_dead() cleans up for an offlined cpu from another cpu and calls only functions that are now irq safe, so we don't need to disable irqs anymore. Signed-off-by: Vlastimil Babka --- mm/slub.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index c5766e504e73..c4a9b8901576 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2554,14 +2554,10 @@ static void flush_all(struct kmem_cache *s) static int slub_cpu_dead(unsigned int cpu) { struct kmem_cache *s; - unsigned long flags; mutex_lock(&slab_mutex); - list_for_each_entry(s, &slab_caches, list) { - local_irq_save(flags); + list_for_each_entry(s, &slab_caches, list) __flush_cpu_slab(s, cpu); - local_irq_restore(flags); - } mutex_unlock(&slab_mutex); return 0; } -- 2.33.0