Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp651869pxt; Thu, 5 Aug 2021 08:27:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuIGfhgz+07wSqye9fEbwpMgRMNqVszxj3slMJQxTv1K3oyDMS7LeGHXFK1bOnLXtI6oiS X-Received: by 2002:aa7:ce08:: with SMTP id d8mr7465167edv.174.1628177223107; Thu, 05 Aug 2021 08:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628177223; cv=none; d=google.com; s=arc-20160816; b=O0+zwAkmZMZ90kYOA4iCzfASP7OoAj/2xGj3XPhU9WweoOLzaX0v/uFPvIQQdi4ZDs uOKLiIcXxPeXH4MjPfbSDo7xusxC2yGAnCO5IY0Z+KYLeAgbAIFx+dh8tmYHCg6O+1O/ cs6pPtvp1kEaJdk/a9Bv1J3SjP54fQCi2lREFWNj2NFkzz4CuIxziIcg+3NhP/1J2yES aOIgmm9Xh6Wsyge3LNNhsGmu24uIzQIeSAwYEnrjShn0Srax7vgyecCOshEq7m4vkmbM EqYGVoiUEcVoc44LiT/EI9kC1LclI0xEduYY1J09yohkkF9eXJCwJtttevdfRFXrfLtS JQuQ== 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=KQBiAtRXD7lpD4hwIN4obeFrxb3xBi85VycaTmL2XjE=; b=tIBHAXq/bL68XCaMpZeSKzE8rIEHbB1FBRC/uecDCdpxqIs9RCX605NQ0CbEkC+PE/ RFtzwWUbDWSQm7URTGPrBYJTMDo+j6DHrhjR1XtwXg5q3w5GJCUSlk4RvE4Y8xdY9szn lueVaMS74mHEgfA3xB+X2WCu7Oh2H/5qh36SqRFgVGXYZ5Iyt58JswH/IWdoLWjmxe0V slC3Y0XypHqHkqZvuyfgs8Q2SUtRVOjBPs7uSuTRVwFiNt9p9hB0LY86FI5qprtmUzGn iQeMdVqSIOYHTmQ76sXurqJ1wtSqPzEUGng1eJyHQKK5CjqHkYX1o+1/+Rupf0yGggHw ZJKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=LVw4BPph; 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 m27si5679316eje.688.2021.08.05.08.26.40; Thu, 05 Aug 2021 08:27:03 -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=LVw4BPph; 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 S242176AbhHEPZI (ORCPT + 99 others); Thu, 5 Aug 2021 11:25:08 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:34192 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241997AbhHEPUY (ORCPT ); Thu, 5 Aug 2021 11:20:24 -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 3F255223E5; Thu, 5 Aug 2021 15:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628176809; 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=KQBiAtRXD7lpD4hwIN4obeFrxb3xBi85VycaTmL2XjE=; b=LVw4BPphYotFKoGJ+2O+nZxryn36pxNVlX/rCHJs1soTM9Q4/Mp8FwlQnuEwOkWlpHlvv8 h7kfocyH7YlLkokPVR6D+GMNhSEK1EqtywU1Ki23CnfNB7AOw68gbV1k8DZgd5XJqfdH8C u5fFkkLCZHnCnLq7gj9R4QRZtkJHNNo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628176809; 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=KQBiAtRXD7lpD4hwIN4obeFrxb3xBi85VycaTmL2XjE=; b=FQhocgb3xJXhNQSQ+27980v7/CDPEF5KqcwWkiSe/0sooc+BRwW1ye+Gw1tlezlXbxrLc9 pgt6FHZyVFmdSHAw== 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 1330613DAC; Thu, 5 Aug 2021 15:20:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eA0hBKkBDGFDdQAAMHmgww (envelope-from ); Thu, 05 Aug 2021 15:20:09 +0000 From: Vlastimil Babka To: Andrew Morton , Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Jann Horn , Vlastimil Babka Subject: [PATCH v4 27/35] mm, slub: don't disable irqs in slub_cpu_dead() Date: Thu, 5 Aug 2021 17:19:52 +0200 Message-Id: <20210805152000.12817-28-vbabka@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210805152000.12817-1-vbabka@suse.cz> References: <20210805152000.12817-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 b8581a9b58cc..c10f2c9b9352 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