Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2651655lqb; Tue, 28 May 2024 06:40:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDzFpEM8Rw5iD/Nur3QSc6qBb+3aa1CC2eymBSYZFL2gWBJrET9jbweL9eT75Zw+T5be/ru4aFI6FAQtHs+Yt41zuBKWB0gNT+vvwI2w== X-Google-Smtp-Source: AGHT+IH/raKdqLTFrRE7GA59KggWAQjHDw3xlmzs5tmnFzRyR8nYWm8f/DdJ7jotvGORloPKplm1 X-Received: by 2002:a17:906:d057:b0:a59:a112:add2 with SMTP id a640c23a62f3a-a62651122demr750187566b.69.1716903645552; Tue, 28 May 2024 06:40:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716903645; cv=pass; d=google.com; s=arc-20160816; b=Tb+QbrCn9R/twUJB/Qlx0+DTPnTnufB570hDi6funJOzSi3Bc2LRAIRpdOF9UA1KRj ZRzike4nABb38E3LxB1gzNGn+/VNLG2fPVpg8UjGdVAIt3T4uZJkSYtUjnvf3AYNsiwO TYJUpjFe8CpImmiVeee8zaPJ7cTKk6mz6QDibeIACaKsc3zP+Zu97EfomvNyCHvAwxDX DhnU/J9PPdM/Bo4Srv4GwIvsnyCLsg5NOdTsyJXJplQlmF5au+aqvSmDO9uybLCH37NN s2Ch1RfZf8O93aT+p2YqQaKAK1jnARGIS/+EwWAiJHi+pULnudYDwx/NcpVEYXLn92/X TlpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=AAVkJCXJ4dkn+VlJdVdki+iHlel2IgcpuHOJvEpfZzg=; fh=GmvVFmSVaaiEuQnyL4keyQ9LIblNua/mtQPfXZT4Mh4=; b=lft6i22263zo3syjVj2jW0zAkBHIpEvJXJWW1C1RsWCjP+IL2Uvm3vSCAEP4RQBnsU 5fZ89EV6Km6o80oSesg/NXVSHJCvuVIeEVeEAB3o93dVH6a6JT0Bu++FohXMLkRmJs+W I5QCXpk2LevaZkh3EFC5dU1fejguwTpo0VAPrXe/mOoQQIRC80+p+AweEouMYJCDCW+w N0adL9Mf4XVmDGpOzgyCmUH6uz7crbpGpChr6bzpKI0EixD9/pc8Isye+rGXTDkbZ4EI 21SrrijGuqJVcTBD+d/vEZc1sORqwnU3178vUc+6UmufQdGwfgrZzUcRd0XRGz9VrJCh jQcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vlybEr0m; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-192438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd95ab4si505669366b.846.2024.05.28.06.40.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:40:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vlybEr0m; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-192438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4C3BA1F22BAD for ; Tue, 28 May 2024 13:40:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5C0616F28D; Tue, 28 May 2024 13:40:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vlybEr0m"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dTyxuErG" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C183B17C7F for ; Tue, 28 May 2024 13:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903633; cv=none; b=p1zJC4rc9nO9zCe5OQBxd69yxMOioWv5OjXzVLrJWr10+7sbqKtwVoSmJQ7Kcy6iX2k7W6kLyv+yZdlbU52JviQn4zsl94gK4J3evIAiQBieaFhKos2u9CBdGRS0utanmInSvEDtNTPAMe9hdbNW0uGiRZmWlUG6xbvNgLnGzf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903633; c=relaxed/simple; bh=jCsWH/d8W7fB3e1UAVqtUFoeOTBe4TZO8l/pIk2nA4U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jADJ7XXntD7uEEoFQ8bIGqsNF1F3l5PsWStA/TmZIyo8Wm10sAYhKVFtsXc/Hhjxl5JTXi2p3u1CIUJE06zfs3sJb7v1/Mf7KFq6pv3ZHPtFPF5IYxhbXkEkok4OTuaFQ0SealnztzrR13j54AVd0oufqckDcLm702cGOSzfDxM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vlybEr0m; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dTyxuErG; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 28 May 2024 15:40:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716903628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AAVkJCXJ4dkn+VlJdVdki+iHlel2IgcpuHOJvEpfZzg=; b=vlybEr0mhOc2+ZEjIFHVBhIOrIA9J0OSOvh7I69CVsMFLfXDR43kB82+V3m5RNAwnwKqvD 36srCUHqDfoIJGt6PHbUrB2MCLU/o3miqCWr6GUzHhtFUUk8iTF+hJ16Mngnod1X/Wz+0y ldkRBtgs1GmlHQPzbvg2BDt7u/H3Sa1JVAXB3f4nnobJEnRHpPXO0b9cL6VDelUidNxJoA tsQa7mrOOvnCojzK85mgPnqIgoL/05JsKSfgMP2r6m5j74xstw2jmaUF2E4AOIFEnWTJeK rDPNZM1mfboBQDzpBuZHBkUIdhOnBpfmg86gGkVYw3jnO0JiVcZMxQs6y2GGcg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716903628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AAVkJCXJ4dkn+VlJdVdki+iHlel2IgcpuHOJvEpfZzg=; b=dTyxuErG1eKdw5YDua9/Tanb4X6kCsKzP391CYzeNj2f4YmUdOKv4ExWTvhdVBzwgfpkCt TFrGd6BDWgp638CQ== From: Sebastian Andrzej Siewior To: "Vlastimil Babka (SUSE)" Cc: Shakeel Butt , Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH] memcg: Remove the lockdep assert from __mod_objcg_mlstate(). Message-ID: <20240528134027.OxDASsS3@linutronix.de> References: <20240528121928.i-Gu7Jvg@linutronix.de> <09e085bb-f09e-4901-a2dd-a0b789bb8a4d@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <09e085bb-f09e-4901-a2dd-a0b789bb8a4d@kernel.org> 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? Sebastian