Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6094132pxv; Thu, 29 Jul 2021 06:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWQ8JtBE0v9Qw8jKOJpqi5JjLb/OSpg6njD5UT+Fj2tSSZumeW1biXsib5CQD43iHA6yK5 X-Received: by 2002:a6b:f40a:: with SMTP id i10mr4181907iog.139.1627565059319; Thu, 29 Jul 2021 06:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627565059; cv=none; d=google.com; s=arc-20160816; b=Da/LiTB+BqFdFvHAzPE1Kx26jKbz1aMhvK7wdFuL97V3XMMRG7Jpe16k1ur/qZYIQr X4QnY4FbUYrsA7zV+wU2zbViC6sZYdf9HMqMMHHWHVtxBc55syv0MV2u82VMLKB8x8Jc 4WAS7m6oR5U2QoPULMhV3XGJCdhjTpT5IrRh0D90/Sqes2z+re6snoEMptSXcENT+sLM vu6KdL88OhDk3R5G+29XwAd0UKHzMDNfF+cF1vAsHxkZF7ny5aflJvt4ILOKUEamNt1p lucAjJIvikZlBLqDyyyauupxhOl54RI1vJvtpqc6UhtQh1vYR3pBr/E78x3ya/ekcJ+F thPw== 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=dCRvNmYTXzwVx2zN3G7egJq3iEgZTeKmgY0mKHij5oY=; b=g91uh85/hq7uojz9w0DdEqCH3k5qQDvrcKdHYO7SHryxorLTFsVIfctAfl3UhnpxWe m18od3ZqsF3gQ5bFn1KO1nA/l0ebHjff3zVemFPft3Wqw+Ywdcuk5GmJPEXZauGyd3Fx Mt9OWje0zt9rXfw0/Rgiq8WAYXARrQgekP6ohAAni5D2CscuHAX5kU39jn/7H6eWhTyv LYdjDgsU2lNXqt+Uf4zvQum/ofWh/A/NJGVbQdO13pM/xr2wtb5cLTu0qeSl0xRFBEZe 1G3tFcsD8GJvr4wouiTk1jJ4K3fN21Cl1Pcne/2MkOlMTyY02UbceuT9eMeV31Hufe+n 8V9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=jV7ZmEth; dkim=neutral (no key) header.i=@suse.cz header.b=CAgV1bKU; 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 d12si3924422ilg.4.2021.07.29.06.24.07; Thu, 29 Jul 2021 06:24:19 -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=jV7ZmEth; dkim=neutral (no key) header.i=@suse.cz header.b=CAgV1bKU; 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 S237842AbhG2NXO (ORCPT + 99 others); Thu, 29 Jul 2021 09:23:14 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:56912 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237533AbhG2NVt (ORCPT ); Thu, 29 Jul 2021 09:21:49 -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-out2.suse.de (Postfix) with ESMTPS id 7E5CC20046; Thu, 29 Jul 2021 13:21:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1627564905; 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=dCRvNmYTXzwVx2zN3G7egJq3iEgZTeKmgY0mKHij5oY=; b=jV7ZmEth17/M0jQrh+A3WNaW9ChfaIrQUrO/4Z1haS8ob0g+g0R0e8jt9n140mXy+31Hqs SGMHI9npLyFBPFjh6WfBZ2ALRguFm6ogAq2dhkqEuC3raH6Gk+Vt4jv0wPTw7KSLklC+ki 504SkYCDz7enr4kvbKRsXhQYfQykpj0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1627564905; 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=dCRvNmYTXzwVx2zN3G7egJq3iEgZTeKmgY0mKHij5oY=; b=CAgV1bKU//9vc7qkdskRfaxiWw1Wyac3ArroWBcyvPFJjintXsnANABjwW27P/FpMJK0jd 4Ch0lIMvycOne7Bg== 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 5336013AF4; Thu, 29 Jul 2021 13:21:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id aBekE2mrAmF9AwAAMHmgww (envelope-from ); Thu, 29 Jul 2021 13:21:45 +0000 From: Vlastimil Babka To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Jann Horn , Vlastimil Babka Subject: [PATCH v3 27/35] mm, slub: don't disable irqs in slub_cpu_dead() Date: Thu, 29 Jul 2021 15:21:24 +0200 Message-Id: <20210729132132.19691-28-vbabka@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210729132132.19691-1-vbabka@suse.cz> References: <20210729132132.19691-1-vbabka@suse.cz> MIME-Version: 1.0 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 2208be8af7a5..edda419ec260 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2537,14 +2537,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.32.0