Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6094614pxv; Thu, 29 Jul 2021 06:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlYWPpQL3DtWoNtY9ToXdLPfVnUyjYnkbbiHIo8XDfpbyhUw7zzIal518GEjafqFArbxeb X-Received: by 2002:a02:cc19:: with SMTP id n25mr4519188jap.140.1627565094785; Thu, 29 Jul 2021 06:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627565094; cv=none; d=google.com; s=arc-20160816; b=cQ87T6zQUeazqPSiM1Hzj4ZMqOyA/Ij8ZuoOOFZBT5nS4/6FIVpoLOVtL2N6QRDKhr yx8Wc9psdpq7sqzVvEXV9XioKGrEU4fMMdzXo7biEYlE+/lL6uy+GLjYC8QCl+OABxKz fJFh0LWUmvrwjhrn5VlVcHHfhA3/SNYDDwbhtlqbrfGKRtvP/bdZJkENCc3VlWh9AMRv SOpEK3XcbQo60PxwgzXKRuX/xtTuiA3SsobypQ3qYx0E49dHUuElp12jYq1viqjeB00T +cVs5CBEmaM4ihjgxTEf9pKMaMT5WcAtihNwoMRixHI4Ljntv1E+0Q7bbHrSubH9pGv1 MpBA== 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=xpbIF8JvWANqlwo8U10bMoRD1Kb0IiYVTRFrVW+6twg=; b=l/gYyHLTQf1LiCfsbZNFhs5Z0VEqB4DD8BZXbfjDUh5bWz0seW6GaDyqJNnXncMcU1 B8W/nLbfhRQepgZ/7GSWo57Yo+D51quWi4TH2xPhBlNl62NfdzxkO7kOEJqzuD35AE8d 89DKIVvOY9abldQB1e9h4oD46MIu10xLN3MOsoVhZ7yry07g+RbZgURhtIL6YZ710BLX 7I07AK9Fwah6+s3JTEu+S7G1QyUZuWdbflov2P32uz9zdSKVxDy9bk45T5iBUcHPcvyc kk8hBeCxSP4anR4FDrgUqhDaLPZaDP63duyFMZkYjKdN6GFwVuUtKLbUtCR6N+wWTpaB kGeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=nu1lyjO2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=UHAX+rof; 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 g15si3860623ilc.45.2021.07.29.06.24.43; Thu, 29 Jul 2021 06:24:54 -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=nu1lyjO2; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=UHAX+rof; 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 S237830AbhG2NXt (ORCPT + 99 others); Thu, 29 Jul 2021 09:23:49 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:38500 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237519AbhG2NVs (ORCPT ); Thu, 29 Jul 2021 09:21:48 -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 C0C8F223DA; Thu, 29 Jul 2021 13:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1627564904; 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=xpbIF8JvWANqlwo8U10bMoRD1Kb0IiYVTRFrVW+6twg=; b=nu1lyjO22OgwOavSbudBmXxid0KsFzOT0BPwWeZJLClcqSdajZntnVMaeWe3s6SH06Vxtl F9aCzHtYLO/G+9fdidvtaD2mNX4PHEL8F4gzm7qwhhcbk698z4nsmpAGe/fOliYsFpb9TS t3hXD9iIbhEGiITa6Y6FnCpMxRJ9FCU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1627564904; 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=xpbIF8JvWANqlwo8U10bMoRD1Kb0IiYVTRFrVW+6twg=; b=UHAX+rofTC16sWfbzhB+y588/q8yyS2ZrZuEpZ9PxcGGYFay+6hB4QVg3TKANzCg/VtgSE klH8oV33Ri9q8hBA== 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 8E5E813AF4; Thu, 29 Jul 2021 13:21:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id uGseImirAmF9AwAAMHmgww (envelope-from ); Thu, 29 Jul 2021 13:21:44 +0000 From: Vlastimil Babka To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Jann Horn , Vlastimil Babka Subject: [PATCH v3 23/35] mm, slub: discard slabs in unfreeze_partials() without irqs disabled Date: Thu, 29 Jul 2021 15:21:20 +0200 Message-Id: <20210729132132.19691-24-vbabka@suse.cz> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210729132132.19691-1-vbabka@suse.cz> References: <20210729132132.19691-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 0ff103ea73d2..1bde537a13b0 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