Received: by 10.213.65.68 with SMTP id h4csp3644640imn; Tue, 3 Apr 2018 08:25:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48r6YiAM2WWTWBAwCvIDUz/fFk2Ze2MvrBtbOFOQnjuofrkqlt3luAku2/fmOvEX8V7cYdS X-Received: by 2002:a17:902:a612:: with SMTP id u18-v6mr14631049plq.10.1522769151227; Tue, 03 Apr 2018 08:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522769151; cv=none; d=google.com; s=arc-20160816; b=vjmfHWJCR0ilKT6DKhh52HMsStPIGa/5yW7/gA5ljKu5P5mjpl435ae0OFzI4HNbi4 eDHoqZ5LnbVQ9mcErC4rubq/ipsrc5blPMGI/AFxwiYsM/178lITQ176J4sjOy7RuHRM Kt4qz6YaDiXVriZlR4F4tcTY9wbHFoCCbkTz9E4m0i9cWYN4YlAfCpa65EX5+MPHDnu3 DDwJI6cozDstnARhWeBcPqJiNo8+ocqNveGmUiZiEK8YDrKJYjZT1EYhZAv+06/ayOSC skHvaNR2Rq+0Af/uHoecVfmYXKioxKWq+JLqrCMN8uf1hVIb3M0t7uGoqii68zLpUMRe +50w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=iqfZlpEGo+GAw7nHQplLtACP322iZTRZntdktKEzTNE=; b=jwH+A/UPuHSC3kRp9XIurISCH9O3rQ7LyLO5JCOupxwuSfIpUIejloYEbmV3XSqsUK aI+MtyuyAmh2pliHDHTfD0WD8hxvmEPDcoKYUp/JduvHRAX2OforKfia1LMNh3RVf2Ik E+4eHHEm9xkawQj2A1m0kPBhdjvGiZLhPtkBm2mSSZTj4bjt+escxPn4ty8Ewph04VrO GyB1vfykcPiXPtcUh4mqxixj6bf9qIoBwdm1JIGGAd3YJXJ6Ni6oBP4CM6aRU624gfjC 9eVr6iZDua9gKgrjBn3DST2WrJOJLtSzhPOOQT97VF9/yDL7ifBsygLvsuE/SreNPH5z DB3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si2063213pgn.665.2018.04.03.08.25.36; Tue, 03 Apr 2018 08:25:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751685AbeDCPXL (ORCPT + 99 others); Tue, 3 Apr 2018 11:23:11 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58528 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751432AbeDCPXK (ORCPT ); Tue, 3 Apr 2018 11:23:10 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3933476FBA; Tue, 3 Apr 2018 15:23:10 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-59.rdu2.redhat.com [10.10.120.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 406BE2024CA1; Tue, 3 Apr 2018 15:23:08 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180403140715.GA5375@andrea> References: <20180403140715.GA5375@andrea> <20180403133543.GA26653@andrea> <1522600912-6208-2-git-send-email-andrea.parri@amarulasolutions.com> <1522600912-6208-1-git-send-email-andrea.parri@amarulasolutions.com> <29562.1522759749@warthog.procyon.org.uk> <13191.1522763553@warthog.procyon.org.uk> To: Andrea Parri Cc: dhowells@redhat.com, paulmck@linux.vnet.ibm.com, Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, Andrea Parri , Alan Stern , Will Deacon , Boqun Feng , Nicholas Piggin , Jade Alglave , Luc Maranget , Akira Yokosawa Subject: Re: [PATCH v2 1/3] locking: Document the semantics of spin_is_locked() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3765.1522768987.1@warthog.procyon.org.uk> Date: Tue, 03 Apr 2018 16:23:07 +0100 Message-ID: <3766.1522768987@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 03 Apr 2018 15:23:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 03 Apr 2018 15:23:10 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrea Parri wrote: > Sorry, but I don't understand your objection: are you suggesting to add > something like "Always return 0 on !SMP" to the comment? what else? Something like that, possibly along with a warning that this might not be what you want. You might actually want it to return true on !SMP, it depends on what you're using it for. David