Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5154855pxj; Wed, 9 Jun 2021 10:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCpKPgPIhtDW36Kyzy40ofo4wX7lOfoHxfQsIPWEnfBKfqMSu/7vQZeM3htD7Fqv6JsUbv X-Received: by 2002:a17:906:f744:: with SMTP id jp4mr924681ejb.210.1623259280100; Wed, 09 Jun 2021 10:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623259280; cv=none; d=google.com; s=arc-20160816; b=lUy82kNK/gk89g99gKzOltzQ6Eb7BAjX528kg77Uf7fhj9TUYqplPWbc2FEOhpDrK5 01a6TpxfRMv/R1fB+nVgNHeZ1c3jPESsuGyREOK8lHIlCkmwSox5ZeE30lqlSSvM3zTg CrujAgeOnV574LTJSFcieKOeIuReAm1Cx4eV0OBXN3HUedAQQzS7mBh43bdQO9G2EXWX 2nXA6Q1h+ve3PQB4ipzdlSiVdHTHRz3dZUxuOucK8z73aps0GJM8jv74DEoaLgquAKhI VZTb+7mxh1A6FuHSfzPdbQFJY4gyuhDv0pEygWPsltEunLXcG5AIgAYq1EL/QiBjA/yX 0tiw== 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=YBcrguTXnI9hsctZTgQ7OZG0uV6yh0oH29eLHd7YhOM=; b=kdRL06m+3iqo/F7/B3rGmMZT5viGrGUibhFgglFOfH/iX3f/qvevuHJnhTu57EZLNT FTrou7NIIiNc1xmwMwPESPN/5zd64O7jwYawqhYFGx32y1npoPEVA/MqLMf6mmLMYuCR UqgiowzpoV8Kuw4aot1oKqXhQ0+Pg774qMyiDEY8GUR6rOoXF0HnDRuDbmmJ4toRjhOs +DPBKzHWW7lPknHcNpwoeHhed+1ZRLVIOliW4pxvhjAwlsl1QKlCIKgBudbgGI/FVqO9 z43LrovGSS8JWo+BiikY67LBIW1ACzE0zVwFaNFsQu2sFsG5MtpKp0bSkxHEeCc95bYJ 2drw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S9aDCy8N; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S9aDCy8N; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="rL6U8d/b"; 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 m12si290369ejl.211.2021.06.09.10.20.56; Wed, 09 Jun 2021 10:21:20 -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=S9aDCy8N; dkim=neutral (no key) header.i=@suse.cz; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S9aDCy8N; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="rL6U8d/b"; 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 S239400AbhFILm6 (ORCPT + 99 others); Wed, 9 Jun 2021 07:42:58 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:54752 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239175AbhFILlc (ORCPT ); Wed, 9 Jun 2021 07:41:32 -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 E5990219EA; Wed, 9 Jun 2021 11:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623238776; 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=YBcrguTXnI9hsctZTgQ7OZG0uV6yh0oH29eLHd7YhOM=; b=S9aDCy8NqeSbElUMJ7WzqpduEvWVpEeZGxboXI4yXCxlIEu7fG1uKF0z9lJHnm7rpwddij n+bVZPPSvlT349WpwhqNFVtX8b//dGxw4IcvqKw8avsziFGZSHgZ6f2LHEqpK7YFhw79LZ Ybbq1xJcy2WHL07mz5xEhmKZbLmb+dc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623238776; 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=YBcrguTXnI9hsctZTgQ7OZG0uV6yh0oH29eLHd7YhOM=; b=rL6U8d/br+ltLXTLyZtABuUoy7FOyMm0b6uCrM6FmDpyc330LYQnO+vOXlpMJMsavg/6bQ 1wJyokoIUQFb+EDQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id B64C611A98; Wed, 9 Jun 2021 11:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623238776; 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=YBcrguTXnI9hsctZTgQ7OZG0uV6yh0oH29eLHd7YhOM=; b=S9aDCy8NqeSbElUMJ7WzqpduEvWVpEeZGxboXI4yXCxlIEu7fG1uKF0z9lJHnm7rpwddij n+bVZPPSvlT349WpwhqNFVtX8b//dGxw4IcvqKw8avsziFGZSHgZ6f2LHEqpK7YFhw79LZ Ybbq1xJcy2WHL07mz5xEhmKZbLmb+dc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623238776; 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=YBcrguTXnI9hsctZTgQ7OZG0uV6yh0oH29eLHd7YhOM=; b=rL6U8d/br+ltLXTLyZtABuUoy7FOyMm0b6uCrM6FmDpyc330LYQnO+vOXlpMJMsavg/6bQ 1wJyokoIUQFb+EDQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id MKT/K3iowGD6XgAALh3uQQ (envelope-from ); Wed, 09 Jun 2021 11:39:36 +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 27/34] mm, slub: don't disable irqs in slub_cpu_dead() Date: Wed, 9 Jun 2021 13:38:56 +0200 Message-Id: <20210609113903.1421-28-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 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 5a81189608e6..12d35d6a6eaa 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2498,14 +2498,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