Received: by 10.213.65.68 with SMTP id h4csp1689423imn; Thu, 5 Apr 2018 01:58:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3A0lxdkSxHTn+Jsi5DP+INX+0PtE2c6lF8P11MdHA9toFAL0Z43pkaTG0yPSJKAscHyuQ X-Received: by 2002:a17:902:30f:: with SMTP id 15-v6mr21384815pld.365.1522918690909; Thu, 05 Apr 2018 01:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522918690; cv=none; d=google.com; s=arc-20160816; b=dQ41JQbUq9vNWuWxf3NioQTPv17Yxbq8wrxucKK6fcqHJ6DxyF+miYPeoEP8HzIEC1 shNDmQYik1nogHm/9KV+FYQZI/zMd6MECsdqPm+cRLhtFF7/0m7z6lIVGyLWtiBBIFq3 Rhr8eXxh1Wm2IGFhfOW3+U6wSG4NtFw15Xoa/1vZpL8r6P3rFAgD0tajjygcT89X0I+G nWonQ0rBprGAyb1kLIXNoPEzs4yacEaab44yUt4EqnmxzTKvi4CJ631ysKn0zzYIVbFG 1O5ShNwxIspGJmqjjjQdQeRb3PAjB5jnMWBF6EQAZzDH9fjlwTWw795+xvemMo6JR1Jd nptg== 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:arc-authentication-results; bh=MOGobabpXa+yw8GhuIXOXK3BknDTzYUr/smPCi1DEr0=; b=Y3BxiMIZfLx8/GZAeCRn2YYpFzVndLzTYbeqtvJPpePCKVzWGe7cgDfr/4aYkobzfG QfNGijZhWGp4lBhKECFEVnH5ByP3wXcFfUjvKh++3jKH4dEiED62cTq9Q1qYILBjt/Zi kUsVItmvZ1CIYyyLVJce9I6zzbSSYNPWDDsJyqFhSo4iTB6g/ymcauywsKLboEdbQdPp 3sUB9Q1Hzxa8z3jfmT4gHDPuEqyRK0MlZ5Szp8hlXTTEynom7DCF7puelfsYX1gXXJNg LbJhOSUFDnf2XrdP2QAaED2iSuncxByU76g66ZXzbELINTGujZj0c65JnUJNtK9sJWHP Iyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SuJv6zrR; 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 f1-v6si7957671pld.168.2018.04.05.01.57.56; Thu, 05 Apr 2018 01:58:10 -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=@amarulasolutions.com header.s=google header.b=SuJv6zrR; 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 S1751365AbeDEI4b (ORCPT + 99 others); Thu, 5 Apr 2018 04:56:31 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:36073 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbeDEI4a (ORCPT ); Thu, 5 Apr 2018 04:56:30 -0400 Received: by mail-wm0-f53.google.com with SMTP id x82so4775073wmg.1 for ; Thu, 05 Apr 2018 01:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MOGobabpXa+yw8GhuIXOXK3BknDTzYUr/smPCi1DEr0=; b=SuJv6zrRrDG10ow8uaYYzp//tO51x7W7ovElnb1gP9p7mY0Vvg0B2GkOmupyyUuhth hPfp5Gzy1ldSCDSqi/SsBCWoQCiH5PeLxBhKJTDm6yQa4aimlXPDWVgpZMj0IH5iQ8ff Bmc/dem9+NqhxOop2E/LaT03RGdbCXMhUywSE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MOGobabpXa+yw8GhuIXOXK3BknDTzYUr/smPCi1DEr0=; b=sOwOSqmPKZCIEZpfZ7eSuuXAe0lMHQpLa0OrfeOcrtbnMPS54+ClpI3dwm/jUYi3jI QTazYVTg3XN2iJuWt7GYRypJSuUfA8xIGayvqNe9+UJlIrBy3unHO9v6H+uo49KE+iY/ nXRO0LtzO2G/hK5LU8H5XFIgM7xR5SWP/wa9sZx47YHd+ABP+duPzdjhpr8gxNV0UBcn XEdubiQeT/cW9gxEgi3UgopgEAzFJ6txT8nX+UZK2isrGrg3vGo7wsiRrhTGhYVt9Daq XViFdX0itdSrkzcuiWK88Lc7heghai7bPOuHEtACjPxyKcc8EQbZSnLFjPV4sLr7Lcby gHdw== X-Gm-Message-State: ALQs6tCQm1HbUcLKUzmgNBX25DNJ6sx5lF7rtjeZG9NlLNsNMNIwR3Ak 2gJaTrGv9Xxry2wg7G6KoL+03Q== X-Received: by 10.28.237.11 with SMTP id l11mr8426512wmh.124.1522918588866; Thu, 05 Apr 2018 01:56:28 -0700 (PDT) Received: from andrea ([213.209.242.222]) by smtp.gmail.com with ESMTPSA id a70sm639723wma.27.2018.04.05.01.56.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Apr 2018 01:56:28 -0700 (PDT) Date: Thu, 5 Apr 2018 10:56:21 +0200 From: Andrea Parri To: Christoph Hellwig Cc: David Howells , 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() Message-ID: <20180405085620.GA6079@andrea> References: <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> <20180405074749.GA23889@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180405074749.GA23889@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 12:47:49AM -0700, Christoph Hellwig wrote: > Can't we just kill off spin_is_locked? It seems pretty much all uses > should simply be replaced with lockdep annotations, and there aren't > many to start with. Yeah, this is not the first time such a question has been raised ;) In fact, some people (see, e.g., Peter's comment in this thread) have also suggested extending it to {mutex,rwsem,bit_spin}_is_locked (the number of uses would then increase to a few hundreds, and lockdep would need some extensions...). Of course, removing the docbook headers should not cause particular trouble, once/if the removal of these primitives will be realized... ;) Andrea >