Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1652750ybk; Sat, 16 May 2020 18:56:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQsrTClMfnOG5xSo7e5GnSh2Ly47Fgv1N76wRlDLJb25KzW4BwLKLJ3QHWI7KkdDJyDC8g X-Received: by 2002:a17:906:7e56:: with SMTP id z22mr9189281ejr.60.1589680595253; Sat, 16 May 2020 18:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589680595; cv=none; d=google.com; s=arc-20160816; b=CeX0W4HMDuLBwhivSDqe08x0VUQnp3aqa5QgQ1NA/MvaDX/Z/2DobglXxC4bjJvfuI k4DeQvBePx7CfPR475QeOnKdcz1bn3zGZtGqF61xFmYo41/0tlUajKqwubFM8ZKEURaj dXTkPPPiopKfNJTjcT46gGJml8hKK8j9tdYe2RLFndj0OISIbr1iNs5pw7RNNcXK8Br3 CsFiGkVlSFX1GHjXykroLEglVoWxWQxOtZoq/tAKxGQtCxXH/mptBW93Eh6t2Aoy7RJN rteoB0Fd9tjuXyM6nSKyNlAGjQY/9tTRgZkkLaMUHSMmTiwEvirE07yrni7a4VCWw6vk uKFg== 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=QqBtGMwRf4iMThT/E7Zzgq854jp3AIpzA1Y8zlAhggY=; b=Hw2+Qe6hP70qKS//spXYNjquq6u2KX/UEFvlEiR3kslEERYAnrz2nKH4DrhjXtHnI6 nxpI/nNLkN5+3JtUyM/VNxf49YqyiFZFZB4xRoamsJWJxTsjA1DD+M5hNbV8XWwuFgm/ Nq/xcHwtv30jqpnSngu9F12jcAcM9KRz0sc+NSDWlnBOZb31CN7y+9McZtZQi0MQs0JR stUaKB/t6uyryF707YE6yO5QweH4Ju51EfnMB9eFBRl5AI8z/t2X5J1TCWD9UBjKcgnp DKNeBBNzeBSuP0mNX1TAvXyRzI8JY1YdcDzBS3Ar9gKQ98Qoh6gltUMBL0P/83FUXS0t YOWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=kWafknG1; 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 x24si3720545edr.432.2020.05.16.18.56.12; Sat, 16 May 2020 18:56:35 -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=kWafknG1; 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 S1726982AbgEQBy2 (ORCPT + 99 others); Sat, 16 May 2020 21:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbgEQBy1 (ORCPT ); Sat, 16 May 2020 21:54:27 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6546DC05BD09 for ; Sat, 16 May 2020 18:54:27 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id g20so3073174qvb.9 for ; Sat, 16 May 2020 18:54:27 -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=QqBtGMwRf4iMThT/E7Zzgq854jp3AIpzA1Y8zlAhggY=; b=kWafknG1HhI2nq0LzV1WNZsMtIbtpGsnnUjIJW35CsFYFMlqLGy5HA66FACPokMXhc /8td4xNLaqhlfun7I+onfk0qbHyvwgkIKM8bOj4UMsnD0rRDMxMFSALK5mG4ULqZwOj6 WmoXzu7R1hOLYUxM2mStHwrkm9PL4c1U1akmER10YBtOmhSV/QJGIj1QxTJ8sHWdoxzm dbKcw0on4aWVPAChVGm9vwFsCT8sIV3v9jp7cvdbpBJyWqOLiLrk+mVcF4sn8GKQ2wvn RuI8czmKO7TExBBB9x2BribWkKTRmRWIkWPT23qn8tkEWth3IcWCMu+8xOn6mQAGy9ww kcLQ== 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=QqBtGMwRf4iMThT/E7Zzgq854jp3AIpzA1Y8zlAhggY=; b=dVKBkhXKk6pO4aeaNxdzLvt589gcHzTFeOyEEu5MjjbUehjGcuSeg7JY71RPLuoA68 WTvfuhwF6kkovPamXAeBBS841m9dDRe6oLjrfXVP23+JUMdwSrBohbgSDoOjIm0BKRiS sGQUJV1PyDKb+cmMG4uB/PeI/dBUmqI4IYff4p9/BXonKvDsKAa2IQq5kDCd4LS3P62A vT+TfOguEa+ljuEp5WrIqG9SxotoVdFRYcsvjhn+GYU7vDnBhiliwaLyGpqSv9XGAGls kMKT8pIIdwpHYwQlvWUI16maYDgwElp3tJTJxjffF/ZlJutTWeqMdvbJOm2yzuhGDYS7 CdXQ== X-Gm-Message-State: AOAM533Y2+dxSzPW5lVJkBDGgclUHGgm+w+plN0LhhacAnxMbeqaZLzQ j2Sv92K82jz22gZpNaXEVs4Ljg== X-Received: by 2002:a0c:eb8b:: with SMTP id x11mr10102936qvo.33.1589680466545; Sat, 16 May 2020 18:54:26 -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 m33sm5978445qtb.88.2020.05.16.18.54.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 May 2020 18:54:25 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v2 0/4] mm/slub: Fix sysfs circular locking dependency Date: Sat, 16 May 2020 21:54:25 -0400 Message-Id: <2BD2A76D-CB50-4BA8-A867-DF71B1DA5F28@lca.pw> References: <20200427235621.7823-1-longman@redhat.com> 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: <20200427235621.7823-1-longman@redhat.com> To: Waiman Long X-Mailer: iPhone Mail (17E262) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Apr 27, 2020, at 7:56 PM, Waiman Long wrote: > > v2: > - Use regular cmpxchg() instead of x86-only try_cmpxchg() in patch 2. > - Add patches 3 and 4 to fix circular locking dependency showing up > at shutdown time. > > With lockdep enabled, issuing the following command to the slub sysfs > files will cause splat about circular locking dependency to show up > either immediately afterwards or at shutdown time. > > # echo 1 > validate > # echo 1 > shrink > > This patchset fixes these lockdep splats by replacing slab_mutex with > memcg_cache_ids_sem as well as changing some of the lock operations > with trylock. For the whole series, feel free to use, Tested-by: Qian Cai