Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3590228ybz; Mon, 27 Apr 2020 19:14:52 -0700 (PDT) X-Google-Smtp-Source: APiQypIQUnKkp4SYKlU6qttPupGXkSHW0LqUYvq+uBoAT5cKSTmeMvhRrPzivKpPfaDEdmrbWle5 X-Received: by 2002:a17:906:37d0:: with SMTP id o16mr16774450ejc.368.1588040092526; Mon, 27 Apr 2020 19:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588040092; cv=none; d=google.com; s=arc-20160816; b=V5mpWhsltI7IdpDi7baQjMOT/nR8mGYpurKOfyGygzVSzaesSaEnDdXumXvnJ4FoEy V3V426hviPHFLTc3BHxFrFvpljYH1UbKCvn0KfTETFNeh7yykDFI6OvULnQ/GI3OaBYG BEGyEUlFxRmKJwGs2wsV8vQB7U4+YKKu5YkEa+bxexZLRR6ir9DIKYU79JrGaub6AvX6 RW8GqCAGWkU6KLy07qqUqRQBJFWEi4XgoIqThNq3Ha6VkICaChr82o5XYhX8z7T/sFaq xd+ufgbz3I5WONscBQJVQS5oef/7PkmKb3dS049Qd7qYCPx9dgEG4xXlFs0zOG5KeBQt JKXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=7634cSYNnkEeZLF9qaQ+2AgpibDUSOrBUl4aX1MYmtc=; b=RWuOb9mqXfDbv2ybMX6gdYlEeW9WITmkTuMAKQz607GNQKi4gpJWe8EK7lpzh90iWn r2IjYXy6lpvyUARivVN1++PNqetWYO9PWZ3iBNQMNN6qAtWlf/rxkH5gXtHF8Fv+OApw Hw7Qn0Hhn684HKTBp63mggo3pZwbKQzyUWG2XLU4cfFBaXRM5cpU3FJMn7hSuBqnuQwh UVZOCYVYlSbi5tYOcKoJ8hJ6cTt3pZzo+GFoE6ypCuKB4oKLgQNGWOMmX+UyGFkfZbpX ueHfsFtKjKrS07kbfUUgJmv4D1k8c1xiGsTE4J+8Pa/Lxz8j19qOJAawj9zxh7eMWbbq YFvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=ZRkzebef; 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 c3si814013eja.251.2020.04.27.19.14.28; Mon, 27 Apr 2020 19:14:52 -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=@lca.pw header.s=google header.b=ZRkzebef; 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 S1726284AbgD1CLQ (ORCPT + 99 others); Mon, 27 Apr 2020 22:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726233AbgD1CLP (ORCPT ); Mon, 27 Apr 2020 22:11:15 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66F5C03C1A9 for ; Mon, 27 Apr 2020 19:11:15 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id s63so20348520qke.4 for ; Mon, 27 Apr 2020 19:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=7634cSYNnkEeZLF9qaQ+2AgpibDUSOrBUl4aX1MYmtc=; b=ZRkzebefYI8C8YM+yiMqJuIxbcoHVPnVIoxvoL8/hgvaR74uXvHOvFl4346qeUIuUr 7GZbXnz+22W3LePUoSJ2gWqSXyMqfX1aUWsfxdOmpYbgkh8OzGZ3kG4YzmdclLPek/RO oVJAxqoWqeclY26sXJcQs4W2JfjNzlx4Ey0FoMnFAYL9UxTnrZyoZzIjUm4gp+ozkZZB vFMTJiTsxGPCrFmtoqo4y0cxos0KVXLX5nMiiWNh/Qy+CCpNKygxhfkIy3hgeOu7PyAq oi2Y0OKlopHWpUuBSkiL0Ed0d0RcX12M4Hl2WS0lsStn0GM0VeqsPhoQqU3g67mlydnw wclw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=7634cSYNnkEeZLF9qaQ+2AgpibDUSOrBUl4aX1MYmtc=; b=KLKKX5JwpjsnreWvLhq+O7RwARIenpnvT9V9+KaPGmgbU6kQaL0Y3Y14AU/R4MS2Rg 8azu9M+QHr+lWd4lxR8mvBiazKaBUCTbUVwuYlnxHRSUFbHcWgNhQPDArgG72LAlbHvy eak5Ofxgx6hv7Il1NbNZ7GzwGq9l2tDHZUvjfSu1la2H6/lSN9SF8jd+KQsSk/g56K9i f2dqMkUwQ+pYgjvv7LVQQBnN/PagxGjtigKAPD7bl5IrHc6hpgIpLN7T879rSC01P6UY J4MF6gl/mhNjFxfh/LW4DbIp5qYxUpkidZdHR97ggoSEc94/YHQpf97+20NAFAkzaDLw q+ow== X-Gm-Message-State: AGi0PuYmGblgik3PaT9eDDP+xiwq5Zn9GDlNkdXgMwuu5dsR0GXNrr4+ Yo+Ym7+XTA9stg6QXxv6YD9zLA== X-Received: by 2002:a05:620a:13eb:: with SMTP id h11mr23839919qkl.404.1588039874792; Mon, 27 Apr 2020 19:11:14 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id p2sm12282513qkm.65.2020.04.27.19.11.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Apr 2020 19:11:14 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 4/4] mm/slub: Fix sysfs shrink circular locking dependency Date: Mon, 27 Apr 2020 22:11:13 -0400 Message-Id: <28BB8A1C-CFDF-4F5A-8686-537C3CE04818@lca.pw> References: Cc: Andrew Morton , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Johannes Weiner , Michal Hocko , Vladimir Davydov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Juri Lelli In-Reply-To: To: Waiman Long X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Apr 27, 2020, at 9:39 PM, Waiman Long wrote: >=20 > The sequence that was prevented by this patch is "kn->count --> mem_hotplu= g_lock.rwsem". This sequence isn't directly in the splat. Once this link is b= roken, the 3-lock circular loop cannot be formed. Maybe I should modify the c= ommit log to make this point more clear. I don=E2=80=99t know what you are talking about. Once trylock succeed once, y= ou will have kn->count =E2=80=94> cpu/memory_hotplug_lock.=