Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5040906pxj; Wed, 9 Jun 2021 07:53:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye29Yk1b2N7mmImRESoo6ato1ShLnLHA3/Le0E8qDzCnM6PDdxAT2TxhH4wyUn+lXUF5b9 X-Received: by 2002:a17:906:b294:: with SMTP id q20mr269205ejz.382.1623250388029; Wed, 09 Jun 2021 07:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623250388; cv=none; d=google.com; s=arc-20160816; b=HlPPq7kHvphp0rVR90odxtbqN2DE00ntgE6wQnC+MFsxKKALEe3rKddksbBniXU2m1 V52AcbF8IurNQiCS5ZApZn/72Iz7isW+uFhuylNGjLH0rqhL0Khv3mE9AGUOfCmtowXG g+QgNVzucUu+6+NLkvqjtLFX6pmDAkJ2piUl9Sn/x81yl+6W2sI1wVwWOpJWl7e84ZTc 9HDb5SKTL5naYeCShJa6eykUt9WLrrIz+/SzYqFlZdBhfwgi3P3dH3uGNJj+Ic0/wf+j a1+Dy9JHHam0qzL3ot/RTTsw1A27Kh9HxpjHu1lzhVHAwgTForVYeO0pZXN3Pdj0rD8p 9P+A== 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=CLObwQuENcRgoukMvNxRJzoRvFwUKPTdwZDaHjVrHHA=; b=yuC8bWxzn4bPw/pfu9rszja5W//K303Vd5VOP3A5nI8aYtkKFa8y9UTdVaBKhn//Yc SAbV4lb9aGHRCGIomVDyhmne3td0zaYGMKeSv0RbIkLmwGE+SCg1cnhQq1PErfUgnB8o vZPfW7cWiyzWryZSgQlJ1e4XyeyaFr0QBEYjGL9bYih9h0AyMfTRc7zR2xzxhHS5yXin PrJ/QvQD5eLkqbd4zAmHCyR6NwAM2R0CyfwSaHmd5Kw+dquIagdBZI2fwX1uxAfxiD5J vV0Ao+rmLAW/5oVhGQbnN1LRMfjQg2mZ5ojmJYF3c+/CWSorDauy9f3/uDFqTB9RtcJ9 ngFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YlGl6sq2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=Tf1wjSQa; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YlGl6sq2; 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 18si26145ejj.568.2021.06.09.07.52.44; Wed, 09 Jun 2021 07:53:08 -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=YlGl6sq2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=Tf1wjSQa; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YlGl6sq2; 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 S239308AbhFILmr (ORCPT + 99 others); Wed, 9 Jun 2021 07:42:47 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:54744 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239168AbhFILlb (ORCPT ); Wed, 9 Jun 2021 07:41:31 -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 1AF66219E7; 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=CLObwQuENcRgoukMvNxRJzoRvFwUKPTdwZDaHjVrHHA=; b=YlGl6sq2LuhXUI56gbtKfae6pZ4AY5ckS09vFiOApOYSgzTheLO36HgdqBhxrpyvLXrv6H xouoMVF2jZrrd2Qj+k4B9VDu3nuRfGAPRnJE+XSP1Wozu8FXIR5jMNUUmTKpLqUlSt+jgv Z/yDLxcN+rOcHGR4MgtzhMN/GThiauA= 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=CLObwQuENcRgoukMvNxRJzoRvFwUKPTdwZDaHjVrHHA=; b=Tf1wjSQaqv/yJ3IoWAa7MJQE8Qp0aY6MDq08lGLOT3kASNsCN2/NXpw1KdzDwsUIYOjxTa N68AarkIwtKZCbAw== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id E01C611A98; Wed, 9 Jun 2021 11:39:35 +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=CLObwQuENcRgoukMvNxRJzoRvFwUKPTdwZDaHjVrHHA=; b=YlGl6sq2LuhXUI56gbtKfae6pZ4AY5ckS09vFiOApOYSgzTheLO36HgdqBhxrpyvLXrv6H xouoMVF2jZrrd2Qj+k4B9VDu3nuRfGAPRnJE+XSP1Wozu8FXIR5jMNUUmTKpLqUlSt+jgv Z/yDLxcN+rOcHGR4MgtzhMN/GThiauA= 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=CLObwQuENcRgoukMvNxRJzoRvFwUKPTdwZDaHjVrHHA=; b=Tf1wjSQaqv/yJ3IoWAa7MJQE8Qp0aY6MDq08lGLOT3kASNsCN2/NXpw1KdzDwsUIYOjxTa N68AarkIwtKZCbAw== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id uFI8NneowGD6XgAALh3uQQ (envelope-from ); Wed, 09 Jun 2021 11:39:35 +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 23/34] mm, slub: discard slabs in unfreeze_partials() without irqs disabled Date: Wed, 9 Jun 2021 13:38:52 +0200 Message-Id: <20210609113903.1421-24-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 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 4a3cd8174cd2..dcbc5baea702 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2346,6 +2346,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; @@ -2355,7 +2357,6 @@ static void unfreeze_partials(struct kmem_cache *s, stat(s, FREE_SLAB); } - local_irq_restore(flags); #endif /* CONFIG_SLUB_CPU_PARTIAL */ } -- 2.31.1