Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2082273ybl; Sat, 31 Aug 2019 07:44:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkxRL3hcQkTrb3uPkyFDF4UpIf6XRkDxiFQuODe2IHE2+Io5wDnQfcmIjgYOfuu3sq5mLb X-Received: by 2002:a62:640e:: with SMTP id y14mr24180917pfb.222.1567262695531; Sat, 31 Aug 2019 07:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567262695; cv=none; d=google.com; s=arc-20160816; b=NBtfzEEdKVfOWIV+RB7LnwllT4xZn7clHgn23kE383DeA113oqX/6/L2OsH0I/drNz vpV5lPZSYmuDpx+6JvyFHoZGMNOAtrr1HaS4Tsmk2EBMv8i8/HebMhvgbC05ePYR97g2 qAFdE/I13F8d52gvqLLpL7dhE0N9g5kdQyErk3fwGqHfiyNjzTA9DrevnZOCQ+G7wxW2 AaEOSHXT6UWN6+ZsNaPWkujopsNZoITl5ya55271E3M7yePSCnOmCjtmoH4YR7Lj3MC+ N+LlbmLGJeDieHFDCiTmdZVcxy/aoXDIvm21ML1KjOaMUKB3GRI8EkUsUSKFVJk9OzQC Sh7g== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=gAJX3s3v02pcf3Xi/9PZVs3+6jpgN40smXK/dnNW0PI=; b=gt7nw+B6HUxfaewFltvKQyS4TY41Dlx3Zv5hvPLNHYaGKl2VXCoCfjOhimpkxjOUu3 5ahKAigf26RkMSfhMPAY1AW2CwdZCILFBUAukKd2IFOw2V5uL1Epqkujh4G5OAwuGjOl XFisid5lR1RdGfaPBpKyh6V3AS/WJw+25JX9sZbClbUHOI1z76/t/u049P0iaf08Nqtm dl/laoF/fY4/KUYvneEmEplvN/oeQJa+aY9fAV2vSM5Y5gY8r09udEWwF7sr0MvQAJjN 0yF8OLFgefBknvEBaKf4vYOHMICqELJm5QTKEm3gvnRwloASq//q+gcn5ce3rkO3reqr /Ohg== ARC-Authentication-Results: i=1; mx.google.com; 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 i12si7187158pgs.126.2019.08.31.07.44.40; Sat, 31 Aug 2019 07:44:55 -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; 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 S1728200AbfHaOnq (ORCPT + 99 others); Sat, 31 Aug 2019 10:43:46 -0400 Received: from ms.lwn.net ([45.79.88.28]:46752 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727905AbfHaOnq (ORCPT ); Sat, 31 Aug 2019 10:43:46 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 51A587DC; Sat, 31 Aug 2019 14:43:45 +0000 (UTC) Date: Sat, 31 Aug 2019 08:43:44 -0600 From: Jonathan Corbet To: Federico Vaga Cc: 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: <20190831084344.6fd7c039@lwn.net> In-Reply-To: <20190831134116.25417-1-federico.vaga@vaga.pv.it> References: <20190831134116.25417-1-federico.vaga@vaga.pv.it> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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