Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1048711rdb; Tue, 30 Jan 2024 06:37:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGBj2AcL/SNm2hgGzhPJdpa/VGgyObtRy2o9svRgfA/6zgj1GMltTl8NADozw3n77+uhCTz X-Received: by 2002:a05:6214:e8f:b0:686:2b72:7108 with SMTP id hf15-20020a0562140e8f00b006862b727108mr10326887qvb.101.1706625421801; Tue, 30 Jan 2024 06:37:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706625421; cv=pass; d=google.com; s=arc-20160816; b=cGpZ9ygbwxVlLifN7AhCPEqBKWPQF89gXjrLZ98n1rfz8j6ZnKKVwooSbkpDVM9fU0 hUe7Squ9fSFnT5R9dCfjh8hy/ZHHJnMDifO8MgCqnPR3700nQDdYTY22SS7RpS6R3rEZ f49bl3xmRMmvor/KgvULpOONFc2Eapzh9Y9zTEobbaMpDWYZLdm30bsTC9lgWREX8Yw2 fQhb1pwWxQhp9k5GFlTZ4Za+6oEg1yEQRDq9iuEXdmy0v0s4bBjZwc1DGCjJkg40BS+R vzFq2nPoxZYRrI44kXP67DvUCSJZxyDG/J2auj6495IhmR6Qw9SwQGcCtY6494tt026P PNbA== 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=OyBsuFwntGApk9FVAb57MEiGG6UlPgpNzf4isPZoRS4=; fh=3oUSWWYQ0rMHaNqDlm8j09K7pkfJE062n+5jIRWafQ4=; b=gSZHXJBEGjigiZGd2apPv+pxDLGAn3uzwq0vQBnXt9YGFqAfkKNj1BuPddLCIUsHt1 7EFYNnJVmMPLhFXJZNSp64CgfxnOvIwjeX9wuzOnVxHpNOD9UgiDukZTyrI27rcW20nS jiCJGk2WHvyX3RumldxghvTA+YTn+u2HMOGg1FCiu8bHdwiHLeAESQUhOfIO0vEAGIMN BCMJSr3+/Gn6tLCO3H3NDQBYY1Aa6pwqOHeSDOXK4X7g69+2nkfv5QYJzwnqcDABEwQH Ar16DaoHIy4p0rF0cWnfVh+a+a6DM6crrXBYzfXl408G8kmb+b/ywqu0UWhgeuDVCZ10 /k9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=RC8VsFKk; 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-44760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fq2-20020a056214258200b0068c65ca8e3esi611932qvb.143.2024.01.30.06.37.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:37:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44760-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=@suse.com header.s=google header.b=RC8VsFKk; 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-44760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44760-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8E3BC1C23DFD for ; Tue, 30 Jan 2024 14:37:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D5987C08F; Tue, 30 Jan 2024 14:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="RC8VsFKk" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 6BEFD7A72B for ; Tue, 30 Jan 2024 14:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706625415; cv=none; b=Pma9ykDgO95X4z2yR62HM0nf7NCAesUTVKY/ITAk72eS2EETIIJkBenjacUjzY+pkcFc/FUF9wllN2VAom9Fgc6Y79V0yHTBLnabSoAfrAx75osSuS9h/Db9Z5YJm2iKznsaJVAAgjkL8EJsKCai0SEyaW2vGoU2Ddmhzgiyc7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706625415; c=relaxed/simple; bh=UFPIndjlEpbSA1phZiuT08Izlqf5JHkeSnMoSCerdqw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d+ZioO/Lx1dquaFqkJbRAslhyB0tidfjQCOqkACVTHbzKRmSKZpoGUEmJpNOgWu0UJ/Hs3yTWVmdrSbhfKaMaEHU8OebsGPahROq5LkyWk8XdxNIEYSFF5zdwyB9cCejt27zoKxAYSYgMWG/mKOc9mEDlcQ1Yh5LiPp12VBjaUM= 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=RC8VsFKk; arc=none smtp.client-ip=209.85.218.47 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-ej1-f47.google.com with SMTP id a640c23a62f3a-a35385da5bbso501254566b.3 for ; Tue, 30 Jan 2024 06:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1706625410; x=1707230210; 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=OyBsuFwntGApk9FVAb57MEiGG6UlPgpNzf4isPZoRS4=; b=RC8VsFKk3Raw6Eus4V6vfm1/97npgMMxZmbex/IpHTyxlaeJAd+mfJ1ZXVYin/08bP 6A2GcqBN/+YkKSp/nBq9iPGGO+D/FXIuq5yid0otaVM1mykGq42xhHMwmQRVlqB5XIeK 5qHN0Zp0Mvx1G4Qr+6+FuIklza+F37HCxGNxRWATTcG+MbvijoLw09Oaab1Pym9rsxAF lPglzuStBeQYaITFw4+NVPt4qfMpCF0NVa65owI+U+WZ14A3zsF4+Z19QIw9NcoutJ1N zwATWqbKWY5fMVDv6ZRc+BUZJwFmbLyKlqG0bTxF3YvRnnipvWBFfoBPHJGVYRlG9DGV 0Ykg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706625410; x=1707230210; 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=OyBsuFwntGApk9FVAb57MEiGG6UlPgpNzf4isPZoRS4=; b=FTwjzmAGmvBpAypP5tlELYvdrBg1YAylXpPKMT+0ZtbRGVjTB+fs9B+rkX01KG0Rf2 pAr225UY5W1hvsM869KGg7lyqr/j7aIubJlUrZ2UyXywjpqlNMBgGd9aygxNeuaAtd7I d4TawIneQ9uz/PMMxdqRA6aR5Bst+g5euGEOlVrniRueojVCwAxO8nCr2PViPQqeeXns YGqN+RreVxFtvlgvMw5sR7i3+ExvhZy+5Sjm+1jRybMimBW97hY/ttI6k4dzfk4wV1yz /D3K8DpMbuO71oTIlQW7MUYNlx0vkIKa8Vy9ps9TwmpaFBmtukp1bu2FO/kInMabHUSd 0N4Q== X-Gm-Message-State: AOJu0YwFCALPvYVSYSwAjoKB3uAPzYwQ5hSKXnCkXkzslAT2qtg9IAyp oAXfYg1Qfda+8VUeMM5UHD+9gZogIa3/otJgg/RbKCQfe9795S3KGMW9kIeD0MK6i/lwsGX1f+E g X-Received: by 2002:a17:906:b29a:b0:a35:e197:c94f with SMTP id q26-20020a170906b29a00b00a35e197c94fmr3257511ejz.69.1706625410518; Tue, 30 Jan 2024 06:36:50 -0800 (PST) Received: from alley ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id s6-20020a170906bc4600b00a35512c7fa7sm3811071ejv.216.2024.01.30.06.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:36:50 -0800 (PST) Date: Tue, 30 Jan 2024 15:36:48 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v3 08/14] printk: ringbuffer: Cleanup reader terminology Message-ID: References: <20231214214201.499426-1-john.ogness@linutronix.de> <20231214214201.499426-9-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: <20231214214201.499426-9-john.ogness@linutronix.de> On Thu 2023-12-14 22:47:55, John Ogness wrote: > With the lockless ringbuffer, it is allowed that multiple > CPUs/contexts write simultaneously into the buffer. This creates > an ambiguity as some writers will finalize sooner. > > The documentation for the prb_read functions is not clear as it > refers to "not yet written" and "no data available". Clarify the > return values and language to be in terms of the reader: records > available for reading. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr