Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp919393ybe; Mon, 2 Sep 2019 11:12:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7ctY2soq9Kuo2LzJtojV/zMn+Q8IGmaxSZsAg2RJwCsLubo3jajNBHwVrNZR0+9qA4Urh X-Received: by 2002:a62:e40e:: with SMTP id r14mr9311877pfh.86.1567447963386; Mon, 02 Sep 2019 11:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567447963; cv=none; d=google.com; s=arc-20160816; b=Gh4pKii9gnTxCnHJMzHs3GQ+aaJ+9PIPyVPosCCeY54pOHLLXcRos3mX5KOF/8u6Wv 9vphFOYMCN+NGYX6iqnxFj2E9Oodbwl+kKs/j4U8an9U6PVJk4e9E64QZgXaLxVBDiMd YYCWBi/BXv7JhP5bU08Y898G6SFzRK8RanKolZWWBOpVu5J467/p80cDQUD+mSXHxM3j a+RouTfCT8wMokyYEgcEmCTpWoDkcR0vxN8eTNQXIhlOYpZX4V1s1gPBFE/kiUqniSO5 kc/BnYgcc/W2I6BmcqFiYkrJaupS8qbWsw3cWcU5nwooP2kSytN2TabxroXSAuShHY/M MCIA== 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:dkim-signature; bh=vDUaJApxfkNhR6vhz6RrOHesiiSeGJbPpZ0PxPybk/I=; b=KY1TEIq9UqrrUYMLcCYZNpcW133m1EV+Tm1IljZf0GHFhyEB/SaDvMYjQcFSCpD/xF 1elFRwJkz9RSBAA8RUZjSAUL/JP9LM68+k3J4AhqyDgL+9TPdXNPAYQwliMnBL4kMi0p CzNiiQ6NgR9PBsrs7Pv75z1o9fda010rcwch0+H/6UjLkot7NcHXrdzSn2fR0CvLu5dE dRNJBAoA8ZqgEdvOdiCbGkRUIXQjzFOdW7iZqiYPH/7BO+Lm3NJHjC6rC/QH3Gyi9cIY 0PHUAtKGdiIFgWsTXEm9EUrnI5piL+QKth+XEfx+YE57z6S0CMF928XRudKMj6Bbq0CM 1TjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=X2KKFYMC; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si4171282pff.39.2019.09.02.11.12.24; Mon, 02 Sep 2019 11:12:43 -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=fail header.i=@gmail.com header.s=20161025 header.b=X2KKFYMC; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbfIBSKP (ORCPT + 99 others); Mon, 2 Sep 2019 14:10:15 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51875 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfIBSKP (ORCPT ); Mon, 2 Sep 2019 14:10:15 -0400 Received: by mail-wm1-f66.google.com with SMTP id k1so15480038wmi.1; Mon, 02 Sep 2019 11:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vDUaJApxfkNhR6vhz6RrOHesiiSeGJbPpZ0PxPybk/I=; b=X2KKFYMCm/kPAAybfVW+JyM12W8hl+Uuo1n8mKn/rzA7LzWsHHSQA7xH/fVkWWzDGQ FngagQeC/98AzdbGqqGS31CY9XrdB/EAZC4eaeudzzJ+Mp1xSqkC0QDTh1WRwnzeYsMK 2JeNdEUWAPgUTWrG4GGn2rDlTSIv+YKvXBQcX9xoIbwkrbJgjh3AwFSWTcYDncochdG2 6Vyi/AakJtGrUSHWxfhHbk00+qsazqOCb+6rPkDAvDQ/n3CPu3oTFPdd99lproWciZs0 uh3UKoHaLH47LxWGCMzQN8UV9viJvdvvB3X46llQDKnaY4YX98QagxcrKXJc0buQUlfZ Kzsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=vDUaJApxfkNhR6vhz6RrOHesiiSeGJbPpZ0PxPybk/I=; b=fMkiy8Mks7PEzai81fFyfmob9UeXsN+LhcjS7lKsikuy6qNHuColBNgup1SlKcfqUT B3re5fJX+S7XEoWT8nLcQHq/f9kw7wiUZhYtq4n3DXWKCYPELCUIan7tI+woWrZHWP3m NlBEwSqdmJTOinWh+vTgEEc1GT5IFDmy5ZOH6AZ4pOddIdqdAsDcYBQzZnrgSKdK9NZb 5f2NC++twiX0rUhDjXXpEq1tcqY0O1BzlbLX7BLzds9d5buqecTwbD7CFw3x4itTxn3W ZEPDFhifmeyglZmMrOG6B41MMA0Ssbv3XL3LUX43cH9WhdDC9GRn5CXpzNtbnE5XqYnm Iwtw== X-Gm-Message-State: APjAAAVYVYn1qAJZorHNNCM+OiDaY2H78dEyWZahIhBPVeNdvFffk7Rz QSBcPQj6A6sByb3ct/jc9FY= X-Received: by 2002:a1c:ed05:: with SMTP id l5mr12399414wmh.21.1567447813348; Mon, 02 Sep 2019 11:10:13 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id b144sm33844070wmb.3.2019.09.02.11.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 11:10:12 -0700 (PDT) Date: Mon, 2 Sep 2019 20:10:10 +0200 From: Ingo Molnar To: Federico Vaga 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 Message-ID: <20190902181010.GA35858@gmail.com> References: <20190831134116.25417-1-federico.vaga@vaga.pv.it> <20190831084344.6fd7c039@lwn.net> <2216492.xyESGPMPG3@pcbe13614> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2216492.xyESGPMPG3@pcbe13614> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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. If you change it, please do it in both places it's used. Thanks, Ingo