Received: by 10.213.65.68 with SMTP id h4csp3622053imn; Tue, 3 Apr 2018 08:04:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx49fH5ple53A3KEpVRPvuYWx8Dq+b+Mq71gsWXGF+rQKgC3GY9jxAw0/C1NCsF1ITYmxWQaN X-Received: by 10.98.170.13 with SMTP id e13mr10838372pff.137.1522767891041; Tue, 03 Apr 2018 08:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522767891; cv=none; d=google.com; s=arc-20160816; b=gJ/P26li7ZTIkbn765CTvkxg8Kmj5obQ8OCM9vxPMZe0tVmo0tMckDONGg/sDQ0INU vfIgqBfw8Mmsrk9l4LcAsxdyVyHoQWfVBFLlBI1Tkse3ncPTeTbz4DNzHsdsbXMmC96g WEcNZ6XH0f+K8aPETJpD4zWndFjbpSx5bsmn/MyLqsPqsdrMrWlMWk5vKuujnUBba4/W m62+QZLVBiwW6WPuAKixgyd2w5R9baZudgPv8dJGjYyAbn/Q7PuHqPfK/M6E3GhoxU0L bmf3vyM7rscAMOgBQzSAUIyqVHst5Mnt3tr/4boQafjx5h/Xw8JyPYM3FgbSrj6mLgvC zK/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=zarQfdxJvl8LgmC0NrvJRf+KcgLDjauC0Y5Sf1cssGA=; b=oexXki51y1/DLtB1QRkarSvpxmCO6ANTVZK0TvLlZeDOuX1hnW6JVv3+UJTSsBC8VD 8l5RgJKvHPET3/uDmVJIZbFG33vEdh11PJN1w/5erN6X7Ld+7G47N74NCCztbKpfGzAY WaQkRsAyoQQFKrKsm1u+CsHck0JUXEzjrbG4vTuAzS5qN6w+1XngmfYzPzw+FghxLx0C uEYeEgq7y1n9on3gUY/dInlmlMfzozj7O6GJPDjL/G67c655zWQ7rerXgJhX2hDfPsCI wcnVhzJWOHbqHo2x3fGIzrWFDLuToO5EwDL5vgx2pfvF8e1ONQ4f3V8007p5OrLUammp eZQw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si719159pld.351.2018.04.03.08.04.34; Tue, 03 Apr 2018 08:04: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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbeDCPDI (ORCPT + 99 others); Tue, 3 Apr 2018 11:03:08 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55214 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751332AbeDCPDG (ORCPT ); Tue, 3 Apr 2018 11:03:06 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w33F1LwF133829 for ; Tue, 3 Apr 2018 11:03:06 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2h4agqwsb5-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 03 Apr 2018 11:03:06 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Apr 2018 11:03:05 -0400 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 3 Apr 2018 11:03:00 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w33F2xqg56426748; Tue, 3 Apr 2018 15:02:59 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C733B2050; Tue, 3 Apr 2018 12:05:07 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 25192B2046; Tue, 3 Apr 2018 12:05:07 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 0BBC616C3CBB; Tue, 3 Apr 2018 08:03:56 -0700 (PDT) Date: Tue, 3 Apr 2018 08:03:56 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: David Howells , Andrea Parri , Ingo Molnar , 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() Reply-To: paulmck@linux.vnet.ibm.com References: <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> <20180403141718.GG3948@linux.vnet.ibm.com> <20180403144300.GE4082@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180403144300.GE4082@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18040315-0024-0000-0000-0000034015FC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008795; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000255; SDB=6.01012548; UDB=6.00516055; IPR=6.00791815; MB=3.00020392; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-03 15:03:03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18040315-0025-0000-0000-000047888969 Message-Id: <20180403150356.GJ3948@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-04-03_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804030155 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 03, 2018 at 04:43:00PM +0200, Peter Zijlstra wrote: > On Tue, Apr 03, 2018 at 07:17:18AM -0700, Paul E. McKenney wrote: > > Suggestions for a fix? Clearly great care is required when using it > > in things like WARN_ON()... > > Yeah, don't use it there, use lockdep_assert_held(). Good point, -ETOOEARLY. ;-) > As I stated before in this thread, ideally we'd make *_is_locked() go > away entirely. After being reminded of the issues on UP systems, I now have much more sympathy for that view... Thanx, Paul