From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C1A3C433EF for ; Thu, 13 Jan 2022 23:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rwuP9tWmb2SaGFQuenbpTrF+3PztJYNrvxPbPsFvcR4=; b=q2TgY0oJb4VhTg HRxsup6sR2MjZlXG2PzqphCjeL9sBMBa0gGBHzeLCtOPAQdPauu9BBnPRN6w5y0tlrnd0uzHF9piZ j/ZQt4aJfi8RyvijwdULwCTnN/Q1bqbAhLneUYTC0Ci6cBBmJjv8MeuJAMAYs/eOzcWl2b8R47IPD ruMXbscRMJr4hGVDO7dv5bRM219q7DY7G13zmAn+3XcLx2kZ/kBUv7v9uaw/abeid/FJ21BjPBwvD yukpRJiQ++X1IhfsqBXbx3jipnAGhCcwUyGIjwkQS4p+QM0nTIyasD3momNj7Eh9Lhe2QSjYQEAuo 9myJNMvxAFHWJc32jTkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n896u-007GG0-Ly; Thu, 13 Jan 2022 23:02:24 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n896q-007GEl-Tu for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 23:02:22 +0000 Received: by mail-io1-xd36.google.com with SMTP id o9so61582iob.3 for ; Thu, 13 Jan 2022 15:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5pDJzk1dQsu0Qk8opYITEZv6dz4zcJdUZeTWjVZhptE=; b=i7ChxMb5M3oaC8H54OCxVrXkfUa7WLgJX+ltnKBKDBkjz66N9TQzyDZinEbP79ixk3 tjxIfvWEOm33MpTaaKvOx4EL+geVEPBg41GOv1jJcsOf82ZVYdqOCCMbuTEYc63fpvWM Fa5uXRS0je7t11ma8khJr08jVW6zsrFZPFOlVJy2ygnz1T9ihu4jgB6FGN0sRF5G6yCi fd2qj4c8tGnOxXO3bE7g56BWoJt0S9gFYxFLez/ONgOdsBCLZlZ4/yxZSx7FztJNAFH/ QMQJIUw/J5MakijV5N5CuCnnJiT803PyaWh1w/qzi76wpuAMLwvKkYffhOfO/RUxjjJB 1kOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5pDJzk1dQsu0Qk8opYITEZv6dz4zcJdUZeTWjVZhptE=; b=dTIw2gP6K5Nnbvtk57ZcXvvoazWDexaEyLKpTsR1JI5BtFwH7bw4VgPh32iFPAorA7 9u/LXrlaDCa4kcJLyroStttHJLURmuyMix4TyQxeX0qGbW8PL9aB8k2W6cx+uN0EwBSH cauaPLhRQ1gorRMmUG/NXGG96X9HTX6kblFxaABtBVlkKiULrhffA3mcitDgCmCmEwoO N5gPnlRf8fxvCa3pF3BfiDotH2qdrVKYBV9w6HBJgIBXsn3t6H3xifqpqAW0uZHPp8cu 4szNWpXa8WCHIt24VRUmvoLHjQLRaP/26ed+1fRqYwbpwXeF2eNP3ORIhUalybQlaSpv Jtog== X-Gm-Message-State: AOAM533hoJB2pYyqTuazwYKwpsc2Lt5Fl5JwDHiJ0uBoUz7xEzPGCapx R7OyvOUsm10X5KyrpgHkxjV28w== X-Google-Smtp-Source: ABdhPJzMMAQXbahgizkqdtfjZ2i9Fvd2grW2x1BACOTg5wkyiMKd17pDOdTjWFpfP/ndoI6nBLGJew== X-Received: by 2002:a02:a982:: with SMTP id q2mr3158600jam.220.1642114939372; Thu, 13 Jan 2022 15:02:19 -0800 (PST) Received: from google.com ([2620:15c:183:200:2ee3:2c3c:a8c8:b1bf]) by smtp.gmail.com with ESMTPSA id i20sm3830279iov.43.2022.01.13.15.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 15:02:18 -0800 (PST) Date: Thu, 13 Jan 2022 16:02:15 -0700 From: Yu Zhao To: "Aneesh Kumar K.V" Cc: Andrew Morton , Linus Torvalds , Andi Kleen , Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Jesse Barnes , Johannes Weiner , Jonathan Corbet , Matthew Wilcox , Mel Gorman , Michael Larabel , Michal Hocko , Rik van Riel , Vlastimil Babka , Will Deacon , Ying Huang , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, page-reclaim@google.com, x86@kernel.org, Konstantin Kharlamov Subject: Re: [PATCH v6 8/9] mm: multigenerational lru: user interface Message-ID: References: <20220104202227.2903605-1-yuzhao@google.com> <20220104202227.2903605-9-yuzhao@google.com> <87a6g0nczg.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87a6g0nczg.fsf@linux.ibm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_150221_004858_DBFF59E7 X-CRM114-Status: GOOD ( 11.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 13, 2022 at 04:01:31PM +0530, Aneesh Kumar K.V wrote: > Yu Zhao writes: > > > Add /sys/kernel/mm/lru_gen/enabled as a runtime kill switch. > > > Got the below lockdep warning while using the above kill/enable switch > > > [ 84.252952] ====================================================== > [ 84.253012] WARNING: possible circular locking dependency detected > [ 84.253074] 5.16.0-rc8-16204-g1cdcf1120b31 #511 Not tainted > [ 84.253135] ------------------------------------------------------ > [ 84.253194] bash/2862 is trying to acquire lock: > [ 84.253243] c0000000021ff740 (cgroup_mutex){+.+.}-{3:3}, at: store_enable+0x80/0x1510 > [ 84.253340] > but task is already holding lock: > [ 84.253410] c000000002221348 (mem_hotplug_lock){++++}-{0:0}, at: mem_hotplug_begin+0x30/0x50 > [ 84.253503] > which lock already depends on the new lock. > > [ 84.255933] Chain exists of: > cgroup_mutex --> cpu_hotplug_lock --> mem_hotplug_lock Thanks. Will reverse the order between mem_hotplug_lock and cgroup_mutex in the next spin. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel