Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9405402rwr; Thu, 11 May 2023 14:37:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Om65morjQ+YPm/Mu0SydMl38AlAykN8d+bo6Q51g0CffNRbmCSWAp0o6DjTm2lM7YQysK X-Received: by 2002:a05:6a00:990:b0:638:edbc:74ca with SMTP id u16-20020a056a00099000b00638edbc74camr30896390pfg.0.1683841059219; Thu, 11 May 2023 14:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683841059; cv=none; d=google.com; s=arc-20160816; b=aoAh8GOn81yt/YItptLxsRGnxpIn4fcjnnCLCk5kQ2Gx1PY7W6OVh0JFZb1UcD3dLz JdtTTM8Ah2j+ieNfVLnZsYmgWr9s68OpDvDdiFuSkMuGWQqievzMvQI1gwM+nGetHE3p fMuHnWC8rUy8Rx5C4OmdR3b6uyHtacFZoY9ts0kpDHpf9QQVhLDgR5NYPOe9EQfhx7Oy 52UX+MPilr3V+y5XMWEhO3qMoJdsYWpU3y8dmIlhzMWBMH0l9JHbJmEnDsajRG5wIvMs eFvnT4sBEC0Sr6lLLwcSc0TaJErNtMFVp37oPLEK65RnbwoRk+9Ww0D6mbNajb2Lly6l VoIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ZvyTnTBpBaNh3iV/iceIpPPOCQck64PIk1iLGoKjMeU=; b=CLwoyc2/uN5X8bo9zu2PKgLQBxSPjEleneFW4yy4ehPpoK4tuMdhEqSiItNJA/ZnPG kniiHPAAUJJUCnrZ0quPaL6tcr83id3ri9YBpgxdThHvwQ2+P90OBgWCNXquBTKD0ORY /kI92h3tYqs/Cv9pWw5zpUxOVuAUC8jigaQ90EUS7JM6U9kUOklJtmNAD+96My4lv/Lj uouNDw0HxbV46Q9PC6JWZh18/fASnbts5F8NiWv9jSYHdlNktQ+nSDwNCazgWgWAaSl9 +tiK+0ubcURBzqJYr2tWQI+xe2Ey5MNkNSQgKO7QMxkOPBS+PclE4ybvVEjN3uwFkiFU K2Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZQ5tCpke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c140-20020a624e92000000b006435b390dbbsi8186853pfb.153.2023.05.11.14.37.21; Thu, 11 May 2023 14:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZQ5tCpke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239185AbjEKVYq (ORCPT + 99 others); Thu, 11 May 2023 17:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239165AbjEKVYo (ORCPT ); Thu, 11 May 2023 17:24:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2F965B0; Thu, 11 May 2023 14:24:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05A6965201; Thu, 11 May 2023 21:24:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E9D0C433EF; Thu, 11 May 2023 21:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683840282; bh=UOflfLgEeoZpb6Dxi4Ad16jc/o/hkcHW7SxdcdNZDTo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=ZQ5tCpkeK2S/wt17bdldj3QZj7qCuSGqJbs4FW7NnLMjVqP/DgabNrsyTzYaM7IVZ /er5JIWZR2SrAN4QNUHoBOBnax81nQuza4T3mYqLI7kGJ/27wGBBAVe41X6DPo4LYH sTHNz0dkCann91PGkxV0DwVl10U5kOk2xk4POopHmAPmFk8wmArmChFh5cAk0i4G15 ye2k0F0hFnfRr3nbf7s6Re2NI99l8fQfNm7Z8Y1VXg+Zwh9yctLlFbz0IRfar474S7 roaSTG4h27zHVYUls+q4gZ3bfsVhNwVEnMwLfn7x5lM+3BQJKjPrbZem0s4DQdf63O gMWghX2MWl/YA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 012FACE0FED; Thu, 11 May 2023 14:24:41 -0700 (PDT) Date: Thu, 11 May 2023 14:24:41 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Mark Rutland , linux-kernel@vger.kernel.org, x86@kernel.org, akiyks@gmail.com, linux-doc@vger.kernel.org, kernel-team@meta.com, Will Deacon , Boqun Feng Subject: Re: [PATCH locking/atomic 18/19] locking/atomic: Refrain from generating duplicate fallback kernel-doc Message-ID: <20796f12-5a8b-4a4d-96f7-4604c782ec21@paulmck-laptop> Reply-To: paulmck@kernel.org References: <19135936-06d7-4705-8bc8-bb31c2a478ca@paulmck-laptop> <20230510181717.2200934-18-paulmck@kernel.org> <20230511193856.GA2296992@hirez.programming.kicks-ass.net> <20230511200142.GC2296992@hirez.programming.kicks-ass.net> <613a2d06-30f1-4140-aa6c-16d5298d9909@paulmck-laptop> <20230511204633.GF2296992@hirez.programming.kicks-ass.net> <20230511204806.GA2298690@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230511204806.GA2298690@hirez.programming.kicks-ass.net> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 11, 2023 at 10:48:06PM +0200, Peter Zijlstra wrote: > On Thu, May 11, 2023 at 10:46:33PM +0200, Peter Zijlstra wrote: > > On Thu, May 11, 2023 at 01:25:18PM -0700, Paul E. McKenney wrote: > > > On Thu, May 11, 2023 at 10:01:42PM +0200, Peter Zijlstra wrote: > > > > On Thu, May 11, 2023 at 12:53:46PM -0700, Paul E. McKenney wrote: > > > > > Do you have an alternative suggestion for generating the kernel-doc? > > > > > The current lack of it is problematic. > > > > > > > > I've never found a lack of kernel-doc to be a problem. And I'm very much > > > > against complicating the scripts to add it. > > > > > > I am sure that you have not recently found the lack of kernel-doc for > > > the atomic operations to be a problem, given that you wrote many of > > > these functions. > > > > Sure; but I meant in general -- I've *never* used kernel-doc. Comments I > > occasionally read, and sometimes they're not even broken either, but > > kernel-doc, nope. I am not arguing that *you* need kernel-doc, and I must admit that I also tend to look much more carefully at the code than the comments. But not everyone has your level of code-reading talent, nor does everyone have my half century of practice reading code. (OK, OK, so it won't really be a half century until this coming September!) > > > OK, you mentioned concerns about documentation people nitpicking. This > > > can be dealt with. The added scripting is not that large or complex. > > > > > > > Also, there's Documentation/atomic_t.txt > > > > > > Yes, if you very carefully read that document end to end, correctly > > > interpreting it all, you will know what you need to. Of course, first > > > you have to find it. And then you must avoid any lapses while reading > > > it while under pressure. Not particularly friendly to someone trying > > > to chase a bug. > > > > It's either brief and terse or tediously long -- I vastly prefer the > > former, my brain can much better parse structure than English prose. Agreed, English prose does have its challenges, no two ways about it. But in order to successfully communicate with someone, it is necessary to start where that person is, not where we might prefer them to be. And there are quite a few people who benefit from a bit of English prose. As long as we are picking on languages, there are some who assert that Dutch is the easiest language for native English speakers to learn. I know nothing myself, but for the purposes of this discussion, I will assume that this is because Dutch uses similar words but is better structured than is English. As opposed, say, that Dutch is messed up almost exactly the same ways that English is. ;-) > > Also, I find, pressure is never conductive to anything, except prehaps > > cooking rice and steam trains (because nothing is as delicous as a > > pressure cooked train -- oh wait). > > > > Add enough pressure and the human brain reduces to driven and can't read > > Just in case it weren't clear: s/driven/drivel/ You know, my brain auto-corrected and I didn't even notice. And I still sometimes wonder why I fail to spot bugs. ;-) > > even the most coherent of text no matter how easy to find. > > > > In such situations it's for the manager to take the pressure away and > > the engineer to think in relative peace. I won't argue, having forced that a few times back in past lives. "No, you don't have to get this done by Friday, and if anyone tells you differently, you tell them to talk to me." In one memorable case, once pressure was relieved, they actually got it done before Friday. Still, that is no reason to make that poor engineer's life even harder. After all, there never have been more than a handful of managers that I had that kind of influence over. Plus there is the occasional true emergency, though admittedly far fewer true emergencies that proclaimed emergencies. But suppose your response to someone nitpicking the atomic-operation kernel-doc could simply be "Not my problem, go talk to Paul." I would of course be plenty happy to respond appropriately to people who expect to read a long series of kernel-doc entries for atomic operations as if it was a novel. For some appropriate definition of "appropriately", of course. Would that help? Thanx, Paul