Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1002021lqo; Fri, 17 May 2024 08:00:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFyUf6zWrwPoBgWEuCEw6PgSzoEus/UVD5wODDHhlWnMFLMr88357KXtHFuPyq34nTCZ7+Qjp8boSqlb05FvHwli5cQh8B5Rgten5OgQ== X-Google-Smtp-Source: AGHT+IHQRppo2T2t7KXwek1Ki/FjbUa6pBk8czsEn0R43VKx8TGBNuFBj2NDesApADXgn+V5XpR+ X-Received: by 2002:a17:906:1358:b0:a59:9eab:1622 with SMTP id a640c23a62f3a-a5a2d665e06mr1376103966b.56.1715958040600; Fri, 17 May 2024 08:00:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715958040; cv=pass; d=google.com; s=arc-20160816; b=N4Rn4H0N2B2kGVzv/q6kT5EJ1f+KHTRBLItGgKOuTXa3kVdEVFgf3DF7zTGNaz9LE1 RVQE+DT1SI9LMxlqluZ5TP1ejnlAWpb/wKOvzvERGfGfxoieLgzK0/j94YB+PKM54uqi 46SYSSDZ9a3lKrUoXkvNq/Hx4hk589dkRUHqTodpOoRY3U7IJgPtYsXLPHpFnB9V6DSo eFoF5FqQcftuOGRzPsJW4vCcwph6A2+9/TGiqdAE7avN/I9DN8vxS9Z5NtbRWJF640Kl DzsiW8qB/CSOMkJFXvweRBm2Gw5jfgBjB/GYH5yUvdC3L5DF7Y7v/uGEcojzAT0MuJ2p L7tg== 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:date:dkim-signature; bh=sLG6EOpwjYm1F4We2llMufvd5cMuzZw1+H13dITQCjE=; fh=Lv6RJUcf4h2Erq5DCdme62iW84yeSLifvCsvp4JXW5Q=; b=OGykIq9Af55POVezmdzIRqeW9m4ZP//xJnfvjMB4D7W77izbgsmec8PmUSVwB4VR8V Ru+jhqSVwmkHNGjoTv77+mm0CnQOOa2ychzzB4hSUqIWVRr7n7IifGhfVWgUhj4qqyVA /Uhirnmm0SyuSXh+4D1qfImN7aS0CLKnWGIv3bBJ6V3BiEZwnvhfVqJR9d1Ziu9rMMPk I+I9hMQwx57WcMQW2vPkWYZ1vO8MMV9V2v72+05q9QAl6OPiqs8w1ycNJ9js/Jv5c/v9 hHS4dRoputXtg1SiSUIWwWCJD2ZvtNxNbBdp4UMTCMBUlLyItitJbClfIL/k6/5b+9AV yVxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b="Yfnw/FDz"; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-182259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a5b1ae877si703307466b.998.2024.05.17.08.00.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 08:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b="Yfnw/FDz"; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-182259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 759B61F22DD3 for ; Fri, 17 May 2024 15:00:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC4D56CDD0; Fri, 17 May 2024 14:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Yfnw/FDz" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D30116CDC8 for ; Fri, 17 May 2024 14:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957731; cv=none; b=d4j3Xq/XYVi8CbbAeG3tCi0qp7N1ljEv99ikgSd4jicAqh/9XBIR+nrwtMNRIKGi+okE6z8wjCuZRL+6c06PZZjRbfUghIVoAgqco9NGAVOnM46muCSr1WMkh3X+id+V4+rF1S9J1AjgMeQj/PQUtRrqHhOuV/dbgV+OseIU6V4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957731; c=relaxed/simple; bh=4AIZl25R5Unl610mzuXwn3kSDloG6vVF/8Yo41fLbnM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sN5Zf65XIS+8TcHnqGA6flqb4JAvhmJoQAdNwjtBGNRvCrtjXSpn3b3T7k1rDR6fuaZrl9MGBhQ1UuMKTsJWKXtxjNvfkp6ls+B+ZZ9Hx1ItJfqrxxiTHc5kIXKkkALCECXwQ1zU4QCI0RU1wQnyso7L7F9ybmE21uhSvwM1DMQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Yfnw/FDz; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2e271acb015so27127011fa.1 for ; Fri, 17 May 2024 07:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715957727; x=1716562527; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sLG6EOpwjYm1F4We2llMufvd5cMuzZw1+H13dITQCjE=; b=Yfnw/FDz/J790i+HtA+d0XQAJ1v0ojE3MYyKQFYPeg8fy+4vzOYykouP6R5I5D3qTh //Mcmzz+7fEx2950u02bZe3mnPkd3efIdOtqVwRN18BaySi2/J6mRyMDBkwA3gDeGRLz VwCOYJf9zp36rSvxOpop7oyhrFsLsDAbV0yUgyZx/NhsQtA6h6VXjdRXwNpOlE+Ogb1f LQH2F0VO7u1YY+2y7j7DXwQb6u5+cZk5deCERSR8SdTHR20QW4XQwWkXQ9bA+LkGQsBQ 6ZKfx0IfeFOPsb8zCJPkmu3OVk+VUJ9Y3CwgKarzqC5qvOdZ7zRtwwHNkqda2MAwJnmP wfCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715957727; x=1716562527; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sLG6EOpwjYm1F4We2llMufvd5cMuzZw1+H13dITQCjE=; b=m5KLUtDYeeldPXwf9POz/GLD5UIUq8gs93OqWQABOkdKtUhsli8LQacHshEg5bGivf MkYAjYfey70hpjTWGVBo1TbmZ23WRaPbF785Vf/8wEhKhic9l2I89T0S9HZL2fKwB4h8 GdP9+E0rABb33CY2jksQ0BzmLqejldR7icKm15zHpDVSVCgnMlPKMNL9LDRbhNi2qSFk icPkq4PaR+BV01UTAvn/uzNxE6pE4x/1nwFrSz1q5e29g9C8psZLCZ0O60g2we5dKa4F 1bEil2ORuGwuwoHGvcfKWFO2KIhX6NIMB80m57INuqAyj2HfXJC/kbCfykPIo2gK5Rnt Oojg== X-Forwarded-Encrypted: i=1; AJvYcCVqlCiarXvp7YDJpY1GwneUZcxPAj8lGOTfNxD3SckZH4hkSnY182mQJB1PBFAtD6AK6w1+ZADcVR0dUNyczvJtMZ7S+HE87lUHuDHF X-Gm-Message-State: AOJu0YxeyMDypzkBnskQKsRFqQ3lr9KqVVgWjap+iZCkI++LPGe4tRMM m/s47QgXs6VnAnii1nadq6I6l5FgztK26bNvp7moJWLLAyPf5AsKDyQMUNdQZdA= X-Received: by 2002:a2e:8748:0:b0:2e5:6795:f556 with SMTP id 38308e7fff4ca-2e56795f5edmr135982211fa.43.1715957726902; Fri, 17 May 2024 07:55:26 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42018b5e1e8sm174210685e9.5.2024.05.17.07.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 07:55:26 -0700 (PDT) Date: Fri, 17 May 2024 16:55:25 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH printk v5 10/30] console: Improve console_srcu_read_flags() comments Message-ID: References: <20240502213839.376636-1-john.ogness@linutronix.de> <20240502213839.376636-11-john.ogness@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=us-ascii Content-Disposition: inline In-Reply-To: <20240502213839.376636-11-john.ogness@linutronix.de> On Thu 2024-05-02 23:44:19, John Ogness wrote: > It was not clear when exactly console_srcu_read_flags() must be > used vs. directly reading @console->flags. > > Refactor and clarify that console_srcu_read_flags() is only > needed if the console is registered or the caller is in a > context where the registration status of the console may change > (due to another context). > > The function requires the caller holds @console_srcu, which will > ensure that the caller sees an appropriate @flags value for the > registered console and that exit/cleanup routines will not run > if the console is in the process of unregistration. > > Signed-off-by: John Ogness Sounds good: Reviewed-by: Petr Mladek Best Regards, Petr