Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp986045ybe; Mon, 2 Sep 2019 12:20:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFydVZxhRsE3AlFuINpGd357Xqk3fDLEoSbd5NoUYGUNaGZ9/h5PeZtgoON5kUZvzsQ2C4 X-Received: by 2002:a17:90a:fa89:: with SMTP id cu9mr3145982pjb.139.1567452033849; Mon, 02 Sep 2019 12:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567452033; cv=none; d=google.com; s=arc-20160816; b=wUlBX9f9K67FcqQO/f8JDyJmYtV8o2D34V4srRAbAlmwJ5Avng7HHrsQXj+kzvdtu8 9mXdWWeas7f8MtZMjQzZeDVWA9KkShf4Pl+kw6afe80/NpjR5TZLVCfvB3vvje4v0IfC qsFAhkZP48W703oF3RNPOuns6BiRLP81ZuRMbEKNSCHaQxxCMle4RyVBHShB3ZYPNqwy CtjCVVARNDpDdxY/WBPjtUxcnK+qH68eOUKmKN0W+5Tpz9ssttP+5SU1qsTrp8uBy1Oe aaRxzpewD07raLAt9WvzrFlCqsCVEPCqkMbjor71hgoCCvtOwFWl0GwhP/5L4BA9yzow WxRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WvO6w1JGeAzjzBoBNy70PSLAMWZ4kpESBOVSCmJ5cok=; b=RkqrWW7ZFCE7zManLy0m0iwOsA8Ypetwg59ROUl6qtKU/s8o4Jvf76Uya20AXrNrgz EnTBC1JYdq25kBxYah/EUUN3tRE36w2SF/a3YZ5IorfYVzg77Y0jA6J3J7aCBUHrxbKv KDg2xzguztvLwaQef2HrXUS88LNgOl/CSLOF0C4YDShqQclhznU1HeJ8aPXP0ibmuHl3 rGn4sCM/r1KkvKPXsJ8kqdimW6SEFBG6MwcUh5i4p+qfvmwGT7MvxUBT13GauEhrbyYe Q5bu0bQcKuo/2bbNDi7/R2nO9SNfU8XyqlwMD49gwjiu0l9hoR+e8yzZeZ6DqTaTyFmU fC8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kolabnow.com header.s=dkim20160331 header.b=hJFEuuou; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h26si12204810pgl.398.2019.09.02.12.20.17; Mon, 02 Sep 2019 12:20:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kolabnow.com header.s=dkim20160331 header.b=hJFEuuou; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbfIBTTa (ORCPT + 99 others); Mon, 2 Sep 2019 15:19:30 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:9496 "EHLO mx.kolabnow.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbfIBTT3 (ORCPT ); Mon, 2 Sep 2019 15:19:29 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id D8D61812; Mon, 2 Sep 2019 21:19:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1567451966; x=1569266367; bh=WvO6w1JGeAzjzBoBNy70PSLAMWZ4kpESBOV SCmJ5cok=; b=hJFEuuou+AtpNPsgyNRb45DU+uP9v/aBuQuu9LZDTt1Mv1suhkz QQmFt6nP+Rff6Ka38Tf+OoXlbLGBI34A0moEeLBIPAoGXU9U5e3MgIz9l5v3GYh8 HelD6pZbl5ly6Ydqf9FaxugLIeUfdY05lNTyWIjHTHQieICXIZI/rSITzJMu8uRF KNMaBnA1P2XIW5OM9GSDvAk4MZP5W8oRJdwrdVlBcK8iV5de/pc/9taetKNC8D43 BRrnvJTzrrjMpX+GRx7kOUMv1NZArx75NeOcQ0Tp+jesddLCSTtnVoLxsXu0GGMf 9Gw2UWb97Q8Dn1c6W3sPtVAgIWiHgPrIUtF1APza8RPYXeAT6DkqsmMCG+eSn5Ca SlbC9zx5DMtAWfZl/4i1yHVIYMyShs7DSIz0TeANHBAWVpMAMbdPHNO2xofbt29q 0rC++mnpuCZVZuGl8bWCcvpqHJB8QQhnnFizYBHlTTW9/YhQU9UkVplg9ewbOFVS zH8Kg4CREJ5iA0CUp4FEpqrLwZ/yM8O6Q/aMSLBJqtqwNK8KzMvj740V3x9LkHF3 nHSMzQDjrWRx/js4kaW+XEK46kiazH8eXKfv0JiRyH6SUleF0SlOqY6g+Wc6/mzx rbBOmidoi4EWp4AVzQ2iYDMEZp+sxpIBF18KQDd+IFQgZJgCPNP7/nJo= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MIjW3ZdQ02Xb; Mon, 2 Sep 2019 21:19:26 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 677BF3AE; Mon, 2 Sep 2019 21:19:26 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx003.mykolab.com (Postfix) with ESMTPS id E79CA4ECD; Mon, 2 Sep 2019 21:19:25 +0200 (CEST) From: Federico Vaga To: Ingo Molnar Cc: Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Will Deacon , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH] doc:lock: remove reference to clever use of read-write lock Date: Mon, 02 Sep 2019 21:19:24 +0200 Message-ID: <4627860.yBeiQmOknq@harkonnen> In-Reply-To: <20190902181010.GA35858@gmail.com> References: <20190831134116.25417-1-federico.vaga@vaga.pv.it> <2216492.xyESGPMPG3@pcbe13614> <20190902181010.GA35858@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, September 2, 2019 8:10:10 PM CEST Ingo Molnar wrote: > * Federico Vaga wrote: > > On Saturday, August 31, 2019 4:43:44 PM CEST Jonathan Corbet wrote: > > > On Sat, 31 Aug 2019 15:41:16 +0200 > > > > > > Federico Vaga wrote: > > > > several CPU's and you want to use spinlocks you can potentially use > > > > > > > > -cheaper versions of the spinlocks. IFF you know that the spinlocks > > > > are > > > > +cheaper versions of the spinlocks. If you know that the spinlocks are > > > > > > > > never used in interrupt handlers, you can use the non-irq versions:: > > > I suspect that was not actually a typo; "iff" is a way for the > > > mathematically inclined to say "if and only if". > > > > > > jon > > > > I learned something new today :) > > > > I am not used to the mathematical English jargon. It make sense, but then > > I > > would replace it with "If and only if": for clarity. > > While it's used in a number of places and it's pretty common wording > overall in the literature, I agree that we should probably change this in > locking API user facing documentation. I would say not only in locking/. The argument is valid for the entire Documentation/. I wait for Jon's opinion before proceeding. > If you change it, please do it in both places it's used. > > Thanks, > > Ingo