Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1221682pxb; Sat, 4 Sep 2021 03:53:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy10fOcH7yaMNRdMHayESVtRJLquYCVK4y0zHa7W+KFAIzUHnFwlr0AHgDzuQCk1gfnKTJR X-Received: by 2002:a05:6e02:17cf:: with SMTP id z15mr2120569ilu.103.1630752824232; Sat, 04 Sep 2021 03:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630752824; cv=none; d=google.com; s=arc-20160816; b=maLkL1MtspSbUKqp3DWv1gZ0yyrP7P/RZ7X6pfSiCx9dUT+LonTxt6pMSGeoOygEhI cnKKiUUpjN10hCx1stolk46fjduCvVgiBssBxAY0Cc8Q6EyOky+GFSuCVpJ2F0nmEhIz Lk8NgAvBnXOxBtDbRJRwrQIExVz/syKEK2w2V9JfMl9mukn8JOvjtjFlczCZS8pVHB2U k+rhW/9p1UqpBwHVSvBXTAEFFwt+3iiQF7qVXH/LekwgBUI763Lad+YleJBWwBHKwoo0 H4Ul8d1S6X8wPSmzlUtVjGnUqiNYA/LNQOXo7T8wn/GPYHJfbUKWj1vBScQvbkkOhztY /Lrg== 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=dbwAVP1gRCr+Fegb8ErzK7CCg9eoi361RZEwCJgWDAE=; b=H5a7YgVpztYuFiJET+Gl47t/elQ59sefEAH90HF2bdjQEEXnVWSG8z4Bc4RTvWK2HR FN0snS5zBnOnIvzUFlbFOPc/twDn0d87ZFut9lCm4d8HYsVTjPmuWcHyQ1okiffosw9G I4wNNUicHN2f8AdFqajizjRJ7+GdczPa76hi8vDpC1I8o1K91tk6rD+rIv4bDS4qAnPm PyGJeF/bVsT44w4q4dCJh52XI3FKi95MTHr901VHIwr/qXAUyOVPUyw007EjAo3n5N5u BmsQebC/QmkpsFVWklrGWG+lfKGVm16sBuMrUBhtbL3CewP7EntXAQTJQYkSlCg0qaOU 5yZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Lgk0gyGM; 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 b12si1620047ila.38.2021.09.04.03.53.33; Sat, 04 Sep 2021 03:53:44 -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=Lgk0gyGM; 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 S1351333AbhIDKwo (ORCPT + 99 others); Sat, 4 Sep 2021 06:52:44 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59774 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235983AbhIDKvP (ORCPT ); Sat, 4 Sep 2021 06:51:15 -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 4288E22683; Sat, 4 Sep 2021 10:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1630752613; 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=dbwAVP1gRCr+Fegb8ErzK7CCg9eoi361RZEwCJgWDAE=; b=Lgk0gyGMjGP28untHwJScNULUtuUOxmd06IfHqo0JJYeEjsB13k9plDw0Xf7JzdAwKiqt7 S3HFpF9/HiVZR1BHfN6cwGRnJXDs7gN0fg80j5hhzcYDNF5DndaVlYfQ6p0SoZ982IkalI Fua5UwSsspvYoUemIsIijDKW+7CiZog= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1630752613; 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=dbwAVP1gRCr+Fegb8ErzK7CCg9eoi361RZEwCJgWDAE=; b=2VZ1ADBE17+h0UlqHzEHIUrcjW9/WkJwDduICcn+ntZsPcdcptC+3gBefM9Jh8iqgQDWDE ecvQrzF/UG0P75AQ== 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 19A801348A; Sat, 4 Sep 2021 10:50:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yPmmBWVPM2HoUQAAMHmgww (envelope-from ); Sat, 04 Sep 2021 10:50:13 +0000 From: Vlastimil Babka To: linux-mm@kvack.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: Andrew Morton , linux-kernel@vger.kernel.org, Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Vlastimil Babka Subject: [PATCH v6 22/33] mm, slub: discard slabs in unfreeze_partials() without irqs disabled Date: Sat, 4 Sep 2021 12:49:52 +0200 Message-Id: <20210904105003.11688-23-vbabka@suse.cz> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210904105003.11688-1-vbabka@suse.cz> References: <20210904105003.11688-1-vbabka@suse.cz> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=761; h=from:subject; bh=qMOksVc/ZBsogN3BJEaa8Rh+CsPdbzIGLdMT/tX9B4c=; b=owEBbQGS/pANAwAIAeAhynPxiakQAcsmYgBhM08+UFzmEo89ZxUCUT/1qc1fiI/E3ozWSbtyc8d/ ixSjyGeJATMEAAEIAB0WIQSNS5MBqTXjGL5IXszgIcpz8YmpEAUCYTNPPgAKCRDgIcpz8YmpEOuuB/ 9Ypx+ux9Tl4YipCWRiww2UPEMMGRV4zH3aP1zM5BnQ04Tq4ixOf0TM8V4Ic/b4iH1htQcxPEWixlll mqVHvLye8GDXa0jxV744njG+dllXZ2qmFRzjve70ETmyWLUi45oFsSaj+XU7Sd/NNTEkELK5HwONbu vcNM17bXXwupGvAt0C1XVKPK3G1RXyHGN+r9vQCtj4C1G2Wa0Zuyl50yZyrCT97emuWTSZ1rZosmkE qYu7NCCDjIPqWmOHOHRsqC5OYcEr7kC933u/W6PaGS8wvQ9DBTEYbypFAx0ezzP9exOW/Q5KcFdCXb Vp4gmjuTTkbcmN8tG+TsS/dJvh+qzN X-Developer-Key: i=vbabka@suse.cz; a=openpgp; fpr=A940D434992C2E8E99103D50224FA7E7CC82A664 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 1c4bd45d66a1..0a1e048d0db7 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2406,6 +2406,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; @@ -2415,7 +2417,6 @@ static void unfreeze_partials(struct kmem_cache *s, stat(s, FREE_SLAB); } - local_irq_restore(flags); #endif /* CONFIG_SLUB_CPU_PARTIAL */ } -- 2.33.0