Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2654124lqb; Tue, 28 May 2024 06:45:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQUUGpVLE7wB8mteYaXYByjJcSFgqKg4KZPu3Nq86Suz5r9s6EbRDOhZ2YuEgMQd3wU2juAj8CFFFgWOUsog4VE7e9comaey6gOqNFVQ== X-Google-Smtp-Source: AGHT+IFaD8fX/Cr/TdOV0jJefv550y7Ws9YRdZu2K8bAta0L8WBcAh+jgNmsr4xq2M8BodoW6+aK X-Received: by 2002:a05:6214:4404:b0:6ab:99f5:d4cf with SMTP id 6a1803df08f44-6abcd14fbf8mr107282106d6.61.1716903901362; Tue, 28 May 2024 06:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716903901; cv=pass; d=google.com; s=arc-20160816; b=S/Q9eRTbsVHGoE+q1eshilFRTlZyzp6Qj6eQNCz9zuTxWGqJnKR+4uf1MLE2KP6imF WkOwypl6PVrLA3JIchr/jSohZjITX4VT6ZKluTgA9Xy1DJjlCDPw5SzEf3llsVQZq/5c ErH5Z87v10pd+uSKsnonfzVZoBIqvr7LgQPG9xR53yWNclrOMjH1grCxnwjXi2acLNzk TXhGq04MvrU3SHSjw9MjJSmi3v16Gp/K71gyd0Mj9sei+vBXXJh9uKTEJNh6cSZEQ6v+ UF0rKPRvuJWyqFrF+s4x5nNezu09+iogfwxXW6pEK9HbXKzY0pDEvhXlqdariEnzfsSY sIUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LIn1Dlg4/wF1l7HRy7IuKXIbdm4ObOMNz7nwnC2Syuw=; fh=2ff9D3Ne91B3wVn+sUe7GV2e+bcL38oL+5GAqfNhaPI=; b=Qfu4oxEUWYZ3D7BKgipCpJR9Mz7DfExUYhRhtXKYVBHDeyHQ1cljNHh67sUqPopEHj 1rtkLvYamtaIpzOF1J60x+s3veMQNCheK14poE5v/ulmvlKI7aYXimmmachrQJnGxXie KxuLtshAIY8luNwEL21PmngBGRTxEGxNbdBRc2V3H6UaCLcRLQz4J5VXWg2BGEOuT21Z 8NqldTlixBPa742KOh0IYdMh4D+lrwra6LvhRgPatvXLponKhiZPwk4gVhZ6U4IAlFFK DHrUl+ERNH9WqF+vafDRkTIKTvequ7bjoiUe3y5TBcOa2aFzBUYJRxczOnlNheNN8wYe qlqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lrd4nMk0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac070f3121si104775996d6.298.2024.05.28.06.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lrd4nMk0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 119F71C22532 for ; Tue, 28 May 2024 13:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A72EE16F27C; Tue, 28 May 2024 13:44:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lrd4nMk0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8B7817C7F for ; Tue, 28 May 2024 13:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903895; cv=none; b=mhGZUcHnfqysOSYNLm9o3s50hCkgWVmtE3I/ZW8cfMEFPPv+fj4u1l4gHaYOHJ41Ya1vsjRZYnZlVt4uFBY1IGTNNDlP1UODM/S+u+2jhqGrIfaT4EmdE4rNf0P1GnSNufQtcIhXVrsYKMCk1MT9yvH1zUHiJAEiS2/3fJhkRXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903895; c=relaxed/simple; bh=9EqkoHYcuTnYOItA/g9YcyP8U6j3EYnq+T+pjK+6TR0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TKWhARMBo1QO3BmrL3ZnFZGaMPHGRUaBwnGgxsEMfKD6DF+uwdqAqI72VfM+DQFits3uoVFCcj+6iD8AOsyWH1YA3adZXzTCvjlxiUixDv/CFb6LPIFdFCGbx1zNNg2euNOPK4trGxRb5gqN7bFa+D51HOOSIRNb4IrTE8d37gc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lrd4nMk0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5539AC3277B; Tue, 28 May 2024 13:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716903895; bh=9EqkoHYcuTnYOItA/g9YcyP8U6j3EYnq+T+pjK+6TR0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Lrd4nMk0sOgxul8v1Wq8ot+mopcU135atLvoBZLPdoY0QyJoRv3I9nK5Ghm9NMPZF Y4nLBLlFe7ZKNzFTy7iyh7Qu0im5K6U/UsGHhkaZwVPVP4LNDACZszrFEA2tWZu+6G U04QCPmaglotlnB5eby69bI2Dbrzbl9w/+8fmCvOOsTqGFleMGFq/xpd0E4O/7QtWm 13FHqFC0CpVofcYjt+aXqHMujeCx+URtEIfARZw7ZFugolZUo89C9OeSKSrGCR2+Wu 25+GIyCYQTbiEwtjQu5fpispaumM0Sar2GVpxafXKEuutDFZjpvWmGOjfE7Qlq2rwq dRjE/7S+h3SLQ== Message-ID: Date: Tue, 28 May 2024 15:44:51 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] memcg: Remove the lockdep assert from __mod_objcg_mlstate(). Content-Language: en-US To: Sebastian Andrzej Siewior Cc: Shakeel Butt , Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Thomas Gleixner References: <20240528121928.i-Gu7Jvg@linutronix.de> <09e085bb-f09e-4901-a2dd-a0b789bb8a4d@kernel.org> <20240528134027.OxDASsS3@linutronix.de> From: "Vlastimil Babka (SUSE)" In-Reply-To: <20240528134027.OxDASsS3@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/28/24 3:40 PM, Sebastian Andrzej Siewior wrote: > On 2024-05-28 14:34:55 [+0200], Vlastimil Babka (SUSE) wrote: >> > The safety of the counter update is already ensured by >> > VM_WARN_ON_IRQS_ENABLED() which is part of memcg_stats_lock() and does >> > not require yet another check. >> >> I think here it's __mod_memcg_lruvec_state() doing the VM_WARN_ON_ as we >> don't go through memcg_stats_lock()? > > It is either VM_WARN_ON_IRQS_ENABLED() directly as in > __mod_memcg_lruvec_state() (which is special) or memcg_stats_lock(). > > Do you want me to rephrase this part? I think just s/memcg_stats_lock()/__mod_memcg_lruvec_state()/ in your phrasing, since we are removing the lockdep assert from path that calls __mod_memcg_lruvec_state() and not memcg_stats_lock()? Or am I missing something? > Sebastian