Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp652939pxt; Thu, 5 Aug 2021 08:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu9dNE8gvfOyXjc9YirR26Bmxj2Nd5PSt05EcS3jtUMzC4gLWGqwIKyg3SCHGG1N74Z5WT X-Received: by 2002:aa7:dc49:: with SMTP id g9mr7157515edu.301.1628177314519; Thu, 05 Aug 2021 08:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628177314; cv=none; d=google.com; s=arc-20160816; b=N18kDZr22FC3mckFc4Zrz4cxNBW6Cn4qQjO6AxV8LnSHXCxconCroZFihgkLv964ED cbTPaYQZ46n01SstIQNSVxhbZkxAfkFWvseHn8CDKm1WU3TnsTg8jBS9GEgN3QoEHXra n/Ll+/RWLhgTRb+Jk8wHLVCGsurgeiSwc2ETkAwdDLG00RrIYR+Xo1SZ4RUGurm3OlcR ZuKAL5LmTVkLG95jrP5urjUdZek73rApRu5Gdr0Vz5kvXw8AwegPeoIEMfCJG1avWF7R mYXtkwNA9meuRhv9jqJJhZB/lsBTjyZ7r8d+bNnNd9qFKuyGnTCvS0zElbTMs08yb+3N 1doA== 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=Qy1FeeBzrxZiAE9Dbw2XUeMAGFBesYq4foIo8DThKcA=; b=GZL7nHWL6FtSVz0G7wB/MTh/lja1gVM3bSmKdCur25B52BdDsk3kd1wwJJozH2SA78 6giEzhFdvWGPLYA0tiq1umnjTNwrC8HRLB/XFsh4cnI1qXEAAO3zURiO05auHblPDNcp Hz8WX+tHqVjo6UAL8naVPUtTBxZ8yMSakCpEY2fOQ3gpzwTmwx/weGhjzNAHx4Dj5P2m OnjeFMR6oZSGkCS7f1UV1QtLN3m5Q/6ASZJs9+VcfHY94QDC3IXF2golkOZ9YJmT397F ojYy0nQ2p3QyNMQy/h/PfdMtaYeEpxbsSeZewzdYPlEL/HKKUou274Ywytz+SNxs6Kg2 CSGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=MaBLV8Q3; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=LBQznp3I; 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 cx8si5735902edb.288.2021.08.05.08.28.10; Thu, 05 Aug 2021 08:28:34 -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=MaBLV8Q3; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=LBQznp3I; 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 S242275AbhHEPZ5 (ORCPT + 99 others); Thu, 5 Aug 2021 11:25:57 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:59408 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241982AbhHEPUX (ORCPT ); Thu, 5 Aug 2021 11:20:23 -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 77FB420252; Thu, 5 Aug 2021 15:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1628176808; 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=Qy1FeeBzrxZiAE9Dbw2XUeMAGFBesYq4foIo8DThKcA=; b=MaBLV8Q3dWgF4TDah7zHkCTrJzchnAcZ17+jsyFzTBC+cXQg3JN4tOGD/E2Ps02RksLUC9 /BADQNPhgoukSqvzQdTtFpinbJ9EZ34of8zTHbgbwTLK98thSeIUQDQ6z/mSNSRxQJffq1 nO7KTso9ucrVW0Rv3T8lTx1v5lf2y/A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1628176808; 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=Qy1FeeBzrxZiAE9Dbw2XUeMAGFBesYq4foIo8DThKcA=; b=LBQznp3IfNfoZ50GFiHtAUo+cCzUFlRP19g8ymHbWJAh6aMVKdB83UjVIGx2561i3bzJO6 d3p/Xhp5URYD1uDA== 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 47C7013DAC; Thu, 5 Aug 2021 15:20:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MO7uEKgBDGFDdQAAMHmgww (envelope-from ); Thu, 05 Aug 2021 15:20:08 +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 23/35] mm, slub: discard slabs in unfreeze_partials() without irqs disabled Date: Thu, 5 Aug 2021 17:19:48 +0200 Message-Id: <20210805152000.12817-24-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 No need for disabled irqs when discarding slabs, so restore them before discarding. Signed-off-by: Vlastimil Babka --- mm/slub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index 51f8d83d3ea8..4d60bf482735 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2389,6 +2389,8 @@ static void unfreeze_partials(struct kmem_cache *s, if (n) spin_unlock(&n->list_lock); + local_irq_restore(flags); + while (discard_page) { page = discard_page; discard_page = discard_page->next; @@ -2398,7 +2400,6 @@ static void unfreeze_partials(struct kmem_cache *s, stat(s, FREE_SLAB); } - local_irq_restore(flags); #endif /* CONFIG_SLUB_CPU_PARTIAL */ } -- 2.32.0