Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1260774ybs; Mon, 25 May 2020 11:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOMBSojz/l9h3p2bGpiZn+7Ut0iID4mXCEOuf2ZBmciYjXK9Cc3Q8QlAMbt2QlpPlTFW4y X-Received: by 2002:a17:906:2343:: with SMTP id m3mr19021229eja.301.1590430059519; Mon, 25 May 2020 11:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590430059; cv=none; d=google.com; s=arc-20160816; b=sRIewiWlzhvumJqVWujtyUlz6vAzRhx9UtzKso0ON8RFuh+u7nBVfpddiOOGRMgssF qDsNt6AxGsysifD5vtKrpZztlaehhKchWyKbwlUUa9yNO2ocTVV1RaqAwWN7TorgP6tC u937MqR7HbMiCYaLPpz9jOdVfqQoyTOsEN0Zc8r53FiGw/fsnciOFZJcFay2CGeh7sr4 /JdZaJUwmqq+xK+JNy9AlIq+OfsTjvYP9ezZlTWeCwLd4WNiKxK46ELBhlU9dfwSzPvt 0zAzen/otY1cuHpUtUdqb8IKVwilzlZPpCFJCWfVyj3g8TJF4rGFv9UYhHP5B5kwK8DV pQqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dQxdhoAejz1eQRhTA0Z6nm3KxlMfKqk/p3CWxSI2U6g=; b=YpGmdOaWW7wB0rM/mMj0JfLyfYV4B/ADxxpjXzlsDdcwBejDK68i4dbfh9IsuVTnog t0AzvP3RJYC/qXLH9Z2cj2lDIL17DaZ8w7bTs4EwjSXDWjKFfX++VvabX23s6HZmFsEf rXApJwxhdiHWXhUWRgK7fdv+3bKItXNXqtb4SjjCcMOe48BaIgmlh8SLWcLq1kK34cTN zTMg6HHiSfFqGofEXYv9vatfAeS+pCvt5u92Fw4NxjlPylkiGlI2K4tfSK9D+rg8TdgF In7omVrumtSy8Hf6rNuglG5/evsUtngvtQ9vPIkcBTEetJxQUqjv57DFDbxyzqrkQq3V M3DQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si9973684eju.289.2020.05.25.11.07.15; Mon, 25 May 2020 11:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390002AbgEYLCY (ORCPT + 99 others); Mon, 25 May 2020 07:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389484AbgEYLCX (ORCPT ); Mon, 25 May 2020 07:02:23 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93972C061A0E; Mon, 25 May 2020 04:02:23 -0700 (PDT) Received: from [5.158.153.53] (helo=debian-buster-darwi.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1jdAs1-00079V-JZ; Mon, 25 May 2020 13:02:13 +0200 Date: Mon, 25 May 2020 13:02:12 +0200 From: "Ahmed S. Darwish" To: Steven Rostedt Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , "Paul E. McKenney" , "Sebastian A. Siewior" , LKML , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH v1 09/25] Documentation: locking: Describe seqlock design and usage Message-ID: <20200525110211.GA375707@debian-buster-darwi.lab.linutronix.de> References: <20200519214547.352050-1-a.darwish@linutronix.de> <20200519214547.352050-10-a.darwish@linutronix.de> <20200522180145.GR325280@hirez.programming.kicks-ass.net> <20200522182409.4016d83c@oasis.local.home> <20200525105012.GA375313@debian-buster-darwi.lab.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200525105012.GA375313@debian-buster-darwi.lab.linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ahmed S. Darwish wrote: > > Steven Rostedt wrote: > > > Peter Zijlstra wrote: ... > > > > > > So I really really hate that... I _much_ prefer code comments to crappy > > > documents. > > > > Agreed. Comments are much less likely to bitrot than documents. The > > farther away the documentation is from the code, the quicker it becomes > > stale. > > > > It's fine to add "See Documentation/..." but please don't *ever* remove > > comments that's next to the actual code. ... > > Then, the brlock comment: > > This is not as cache friendly as brlock. Also, this may not work > well for data that contains pointers, because any writer could > invalidate a pointer that a reader was following. > > was removed not because it's moved to Documentation/locking/seqlock.rst, > but because it's obsolete: 0f6ed63b1707 ("no need to keep brlock macros > anymore..."). > Hmm, the part about not including pointers is only mentiond in the RST file though, and not at seqlock.h. Anyway, ACK, I'll beef up the comments at seqlock.h and make sure they are self-contained. Thanks, -- Ahmed S. Darwish Linutronix GmbH