Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3260728pxt; Mon, 9 Aug 2021 22:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFXxE7YGMixmCDRZizJE9qd0gqUyGN3+FVKLhmnAMaHGJ8HV6qFhDlLlQvEIYD1C9XNAdc X-Received: by 2002:a05:6402:2709:: with SMTP id y9mr2656305edd.149.1628573091492; Mon, 09 Aug 2021 22:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628573091; cv=none; d=google.com; s=arc-20160816; b=uXGHATL5G6tC7rY90vnxcNGjTwufkd0++2PkRfA3ydcpDHQZVIbkXVBNwOSHDroQpH tCv8nCGPreCWch3xhEn8xRObvCxnLo4KlEq4lTvGUpROQhNRLbeAJphlGfZ5tMBkVP8M H9E6wfDZ5XuXiKnqGPyHt2ab3obD5lrvtA8LRrgN3F0ZD0H9ctO3UTiF9ZNGsxa8kxPk QockRXsjZLS9vu1j5TzN96BFiTYJZ+Qaox+zWlYmzPU8mdH/jn2MN9COjGve0HWBe1fx paEZHnniSA0BHlCDIY0NkjHcOgzSXJ7FuOpbiHj0gz4bUecSMfKt1CKTPr/lmoXMN4PY TzeA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=+Nu1NPwU8gmnYPV1i7yic0siMKFnWcCeB4fM6VeCFDs=; b=anaowocr0K4RLBAg1YdN3bfYxDsUweb57ouGiWcqv56AUxSN73k8x5FMc18t+5tw4Y SV9becye7BdvcPjuN2egAjOM+k+3GqY2V1zBlvsgvbdQZmhGN/Ufj2pJUZR7G/ekdasD pUYZr3b+VGtlP+1tAwUPqm6cc/ekuMmPbWxQV4DTcPTEihtmDnu4md/y4w27WWf2qIaQ b5vNGa5Jnssjb6qF1yDVXPxogyRkXJJL4meuKqRiGTnLIut6KNew58TjqdwSxBK0htg4 UAde7FcosVK6TGsojH9RrX7mkHscxJx/mGzGrlxNpL5lkSqsEdffagx2USklW6vv8HWd YaZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=a5eJYNxs; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar23si10517617ejc.434.2021.08.09.22.24.26; Mon, 09 Aug 2021 22:24:51 -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=@gmx.net header.s=badeba3b8450 header.b=a5eJYNxs; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236404AbhHJBHy (ORCPT + 99 others); Mon, 9 Aug 2021 21:07:54 -0400 Received: from mout.gmx.net ([212.227.15.19]:56827 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbhHJBHx (ORCPT ); Mon, 9 Aug 2021 21:07:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628557623; bh=xtqclcPFtKgKjC09LgHdgHK6lA9GAA8mf/LdDlqDWKc=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=a5eJYNxsywhXyve/ZWkD4VSrzwcL8vXcGIf5iip64yfAv1GdsN/vp91kklxJiKWAW lNzG1AUXYBa4wMedSYJvkf8dl2T84qGO5EIii4XiC3ZV3gytRzm/SAQiFVB4CdKiig NbEriagXSll109PBJadXFMxCigKHLSDa/pcueF3E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.191.219.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N9Mta-1n9NBL2ssO-015KAT; Tue, 10 Aug 2021 03:07:03 +0200 Message-ID: <4fa0e9016f746e070150f6db78202d744a3f9c4c.camel@gmx.de> Subject: Re: [PATCH v4 29/35] mm: slub: Move flush_cpu_slab() invocations __free_slab() invocations out of IRQ context From: Mike Galbraith To: Vlastimil Babka , Qian Cai , Andrew Morton , Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior , Thomas Gleixner , Mel Gorman , Jesper Dangaard Brouer , Jann Horn Date: Tue, 10 Aug 2021 03:07:01 +0200 In-Reply-To: <7d9ac614-f18e-de5d-2d47-f92e618d76fc@suse.cz> References: <20210805152000.12817-1-vbabka@suse.cz> <20210805152000.12817-30-vbabka@suse.cz> <0b36128c-3e12-77df-85fe-a153a714569b@quicinc.com> <6e3bb54fdf7208f3f86a5d31e1ef2a576d8e7e37.camel@gmx.de> <7d9ac614-f18e-de5d-2d47-f92e618d76fc@suse.cz> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Niqhnc4JbukI/xu31QlaECKWCPWeGcI1Q31mG5BLCHlc1J2SvEi MRlQUBLMefQTttiMKWz9TGcknwEhTKZeh0KPT3dNMVkSMHXRFNr1uM9Is4z/l31FZeBWO/X kR+K6AaP3IVe25umevTV2DN4mrVoI/nQ1AkUP90i+CsCgKVWbmrHHHtFPObabGvFRT+DxI5 4sB1rg4Xr+P5REMpLnTuA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03: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/oX7gl3MW0Nkjk5RluWlvZSvoOReUfrQFeAvEusZ3zRgyeFTMkzsYqMEPijymeSSQhH 0JyO54GpAhtog7xClOonsWqECk6y3lL7R0R Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-08-09 at 22:08 +0200, Vlastimil Babka wrote: > On 8/9/2021 8:44 PM, Mike Galbraith wrote: > > > > > > slab_mutex -> flush_lock > > > > Bugger.=C2=A0 That chain ending with cpu_hotplug_lock makes slub_cpu_d= ead() > > taking slab_mutex a non-starter for cpu hotplug as well.=C2=A0 It's > > established early by kernel_init_freeable()..kmem_cache_destroy() as > > well as by slab_mem_going_offline_callback(). > > I suck at reading the lockdep splats, so I don't see yet how the "existi= ng > reverse order" occurs - I do understand the order in the "lsbug". > What I also wonder is why didn't this occur also in the older RT trees w= ith this > patch. Apparently (oops) nobody got around to hotplug+lockdep testing, RT or otherwise. I know I didn't, goldfish like attention span being used up by explosion testing ;-) -Mike