Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3847426pxj; Mon, 24 May 2021 16:45:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweim3MUFRjUjVfk7lt+b0IyE+0osr5HyeAvfNA9gaDlVISLeTFMTywNVDLJtKfyiFjR7wQ X-Received: by 2002:a17:907:20ce:: with SMTP id qq14mr25390411ejb.35.1621899935336; Mon, 24 May 2021 16:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621899935; cv=none; d=google.com; s=arc-20160816; b=K0Sa64hB59xce0hojgXoCyr9Z6iu6EDQ141n2KhyR5xzpb5ysCijmIO+m7um8wh23g azu9RlqIC1Mp1W2oRcsA2XBlL26spo/cqLyhd/G9EkcKhURZjNbwKY96+Ct9RzAfSvJn yPTL0YBj04fj+lrvQCwRdTFSyI1mk+hRzosOS3P4vA+7A+D0CPcqhaU8jdMMFdqc+vr5 Iv5m/yVC0LQQx2A3Ij6718K8orcYJIFATg5EOl/5biCJdMhsApTdOsD2mFjZ1uUfd63s 8+WmQqjIzzeDXh+8XYhKY4pgZFigEWQcmSglYUOT6j3A7Rc64v4prFlOzJ0V5hoYGC14 qUTw== 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=op7fjoPtUEPr3ctFy+oe8fOC8FmEaHNINBmfV/1aXJA=; b=SCo+pflXLwGTZr0wWvONZOQ5uql8U6wwnrNuL5RrIHdOoj24PzoI0lWAE6EvdFZY2S SJonELAfd43F48z1c81LuVD4fZYdzsQebaBD5y3iqT6sF00sbKYsmFoZGu52GcohLfOT GDmw68tN8jzmwFGQSrn2jkOnkayqXW/Xqe/0aAVe1Bxqjdnc7Q7lc1EAS4qEVFmZ+b+g zZQP9WfbvMLI8GUMpDlFXxesCqNZwb8Ac6jbT3C+mMDrI0amLu4sJU6JQ6aLvIvtCSvm Z+ut8RcWo+kgUqoIlCQufcMuwJICDEOIiN+T+QJQ642VpnEhJlBTcvtSDJp/g2gs3a4x 2wRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=j5CrEwls; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=9AvNRWnI; 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 o12si14454307eja.417.2021.05.24.16.45.12; Mon, 24 May 2021 16:45:35 -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=j5CrEwls; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=9AvNRWnI; 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 S230458AbhEXXoB (ORCPT + 99 others); Mon, 24 May 2021 19:44:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:50898 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhEXXmW (ORCPT ); Mon, 24 May 2021 19:42:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1621899649; 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=op7fjoPtUEPr3ctFy+oe8fOC8FmEaHNINBmfV/1aXJA=; b=j5CrEwlsrJ97eI7Q/RnlCCVX0h2O6pGXZM2B5dR0ojnjGzy7U6d2dOldaQ8rJhxJsXpLqQ JXUGR2u3a1uTkaws8Q2smsz50395pxrSVcVaB/Lu2aq51gSuFkuhaU34tXe6xpwkpeYu1G 5p8hrzf31ehPMkgSpetskqpAgVf4Mu0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1621899649; 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=op7fjoPtUEPr3ctFy+oe8fOC8FmEaHNINBmfV/1aXJA=; b=9AvNRWnIj2pXJNZYmJPqNKbMhCG+4woX0Bxur60VVtdBkzhuL50yg+ZedmgWqslu8IHFko Skfp93IfQ25rSTBg== Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C257CAF52; Mon, 24 May 2021 23:40:49 +0000 (UTC) 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 24/26] mm, slub: don't disable irqs in slub_cpu_dead() Date: Tue, 25 May 2021 01:39:44 +0200 Message-Id: <20210524233946.20352-25-vbabka@suse.cz> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524233946.20352-1-vbabka@suse.cz> References: <20210524233946.20352-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 aee83758bbc4..bfa5e7c4da1b 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2515,14 +2515,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.31.1