Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp34678lqb; Tue, 28 May 2024 08:10:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaOGRSXnSXAaKb8IONU9bYYi/Y+BLKhBbfVDaYZVB2hOWND8qBkkpL6BVgm1429NaGZFnLaf6CNWwTIMqdM0ikC8rQtuvuq1XlE1MJKA== X-Google-Smtp-Source: AGHT+IGYOn+HvDBXj6j8RVgoHu+uWMMvKWXmahwBhXxNvqiF7Up3UmpO3H3PoDSQNX6/Cqev9tyc X-Received: by 2002:a05:6808:298a:b0:3c5:f4b3:e0e3 with SMTP id 5614622812f47-3d1a7646c8dmr12855814b6e.41.1716909041402; Tue, 28 May 2024 08:10:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716909041; cv=pass; d=google.com; s=arc-20160816; b=XXDkwQiZJSx7eRpsTbRCGm5c2B1Cuh3R1NE+H7pj/D73hP4KMjCGyebYM1er6AGjlx ZOzAcBoHqvlJrIdVtDEtOTE3CokH2ZmZdB9Klv01/Xb+soEBp6eu0DXv0JLimXVjOIaS 5xrPnsNimaWU2AkrNO+HD0OaYjl/UBbN3yXQTCUlMnQMbewlK2H97KUcphiX48FxxJK2 flicEpYJKHMNPjxNwey62lWNtcLQTTaOhrPotiT+f2ozQId2ap2AcBcbqCCu6Pbb2YmI 70vyOg90oxvfbAYEbxL7ekNKUfhoF4NoelIy+UUnT5d1+3v6drE62qKJjwxbcEIbywln EBqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=P48KJGTArLH6kgQrKn8ymy/o3CVNJ+TGFjmrkgVpgSM=; fh=4Jd/Vq1f/d2LKFjjOugcA8+CyXAAeDWzJl/c0CrTxPM=; b=oF1l09QqElWVHoq3oEVy+uRxRgHFWkZSRL/yJ39Rva3lfqEPr756hy4j82OZXlLoRt b/tDrMZc+1tAvW8JLr6fetPEKjNBzMD10L7eOZ8NtvBWlt0V9n0qpgb0/GFv5VhrS8M8 jOoYsx1pYmMLTjkU8Lqn4HaMhH3NK7G5MS9CGi1tFD1movX24mdRr5D/I1nr9MWCTIUn ncJvZ7KdC3QDQRlR8+w24SDWCy5TfHhuvsOvPPN/gTkOU4GyHYpRyAJB6krr5guSWQkH ImCk0go3m9Y6y4pfuNLJdVnfWKnd99pVw5nFUj9QbLkjs7BZkdD3KSBMMwhEvGYCNIVm tN3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HSipuzVz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=wGpR9+PY; 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-192619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48a3a40e734si2518056137.742.2024.05.28.08.10.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 08:10:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HSipuzVz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=wGpR9+PY; 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-192619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192619-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1DD101C22811 for ; Tue, 28 May 2024 15:10:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CEBD171666; Tue, 28 May 2024 15:09:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="HSipuzVz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wGpR9+PY" 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 14682171643 for ; Tue, 28 May 2024 15:09:04 +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=1716908946; cv=none; b=BbruN2VuKljeb47VDJaCNvO7CRXryaM5FAlcdVvQfjHnmSWDKYAJ38O8FTuzwC5e7/U6xcXKcjCSOlZ0wO3U6qS8dtJf8CB6W2QTejcCmgt68syCTLVtnpnRLUeRlqlre1oH9ZZcEjZ4tTPFPbzsjgHtYogV/4Zq2n7228+k6rQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716908946; c=relaxed/simple; bh=Z/6iY5aPorPuPiA1JrVusuywGqYQJMJRO0cBMjmbbag=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hOxHAqu7tyX8UM6R8CjwaGkBZJ4UUo3orkN3k0tUVn4HPkBMwdlZQdO02qYBoTGvI02F6K2fE7ImCCzLqu+Q+t3rgXB/40vUAqhKw8zHqKwE2LrujfHN2z3avraxo0TmZRzjKa0OH3nB1HRprFZzzVdXBY8NWGbUzmB2O67H7Y4= 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=HSipuzVz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wGpR9+PY; 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 17:08:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716908937; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P48KJGTArLH6kgQrKn8ymy/o3CVNJ+TGFjmrkgVpgSM=; b=HSipuzVzdq1tErQh6KB0HH8CO5WEx5w9dsM3H0Kn4nwQLhDjkaSdUYZu9LefKpCEqoGLeF 7mBUqMkiasBFiH8dYhVgCmi6aGfOxrpmlz6ZZqO78XU5SFaCgxK6OczZOcWwlil1Do35/5 iagbre8hh0TEairibM0xQjY2w9YrrRv5nrtSZLo1n52HEzKmZ2PvZvqlecFCjTOK1prN17 WRnBovQiCRAq7SbuEoRi3byU4t/5kHdSMZMC3MIxWPCK6PnSj2+hG446NJNn+u9aW43T5+ Rhhmrvx28TiZzFtoIbdlayQyTwaMxdyITv5ti8XlUvaNVDGYaxZ5g2k6Cbl3AA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716908937; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P48KJGTArLH6kgQrKn8ymy/o3CVNJ+TGFjmrkgVpgSM=; b=wGpR9+PYb2nKbg3mNFFgI59xNVSjFbua4gaC27YVtSyBMnqD2XNEqI6jkPQxfIFVjDd3U5 OfjGMwdXgcfg9TDA== From: Sebastian Andrzej Siewior To: Shakeel Butt Cc: "Vlastimil Babka (SUSE)" , Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: Re: [PATCH v2] memcg: Remove the lockdep assert from __mod_objcg_mlstate(). Message-ID: <20240528150856.u4rArjaq@linutronix.de> References: <20240528121928.i-Gu7Jvg@linutronix.de> <09e085bb-f09e-4901-a2dd-a0b789bb8a4d@kernel.org> <20240528134027.OxDASsS3@linutronix.de> <20240528141341.rz_rytN_@linutronix.de> 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 Content-Transfer-Encoding: quoted-printable In-Reply-To: On 2024-05-28 07:59:57 [-0700], Shakeel Butt wrote: > One question on VM_WARN_ON_IRQS_ENABLED() in __mod_memcg_lruvec_state(). > On a PREEMPT_RT kernel with CONFIG_DEBUG_VM, will that > VM_WARN_ON_IRQS_ENABLED() cause a splat or VM_WARN_ON_IRQS_ENABLED is > special on PREEMPT_RT kernels? we have the following in the header file: | #ifdef CONFIG_DEBUG_VM_IRQSOFF | #define VM_WARN_ON_IRQS_ENABLED() WARN_ON_ONCE(!irqs_disabled()) | #else | #define VM_WARN_ON_IRQS_ENABLED() do { } while (0) | #endif and this in Kconfig: | config DEBUG_VM_IRQSOFF | def_bool DEBUG_VM && !PREEMPT_RT | which means on PREEMPT_RT we end up with "do {=E2=80=A6" Sebastian