Received: by 10.213.65.68 with SMTP id h4csp1592233imn; Sun, 1 Apr 2018 09:34:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+WZWdYYumnB5KdXIfkdmjeCnsSGtkBwWEw1W/CAkk808u+jN6NRPuAXD6m28vBLq/HL8Pq X-Received: by 10.99.0.200 with SMTP id 191mr4286804pga.33.1522600479354; Sun, 01 Apr 2018 09:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522600479; cv=none; d=google.com; s=arc-20160816; b=BSAk2xCwlBUS06Q8cnb2zvMFdr57VWaYDLKpJF4SEJWOVhho+b3EhdqA3ush8RS44i 88Zwpkb10ux19U6sV2tpgTmf775lf898Ga3+qUJKPMnydWFhU9l/YxT0hbhdz/JguBLW 9i1J2DMXt4u+4IFjXGZ9JToORfusGb3T++3WloBjbTDWEfd7zXVbd75Yl1kk/9lHfCub zatRqh7hhdvq2RmiRTFZF/KZBxeFsZ4G+d8/GaYpL9scoZD+ujfk0xZoT4bYOYGOpwXF BGgipzzUY3pDaIK/cQkA9/mb5ZNlauK5qZ9KB8kJ8PW7K8mMJS3cFLQu3tC0V0s/hlzS bVFw== 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=Sguij6BUYmcI/aG/uJf25pAgKYfKPHGlg0T0oddtfdM=; b=EXdbS5D9pvKw70eIQwEu4qFNkJqd3TXUAb0Vjqoi9OPULHF/yWhopp8tpKowvXLsAt a7CQ1DfrAlWPVk4x0LJ06E6wy27c156fu23YNACS9gMdxfOJ5D3RqO1VlxzqHXbqKDkz SdawslvSjsdGlLa3gpeeySoRWalwYBvZxlYol9CjcXXtzlUchHF5F+8U3yl9+3FixEro 8prh9SjWmwOQuVXUDBjysW8S4nGXJr2mbItk1kmvgj7yDQwNrUX1QB30b4s6IHVXxHyM GCIRWIeJ2MyHLVYFUoILLQ47qE3hh5KIsXHUwUK3QUz5/5G+ss0JPk+EFg4Ig7cxXnlx UwBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WuVj8174; 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 u75si9678536pfd.183.2018.04.01.09.34.24; Sun, 01 Apr 2018 09:34:39 -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=WuVj8174; 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 S1753680AbeDAQdN (ORCPT + 99 others); Sun, 1 Apr 2018 12:33:13 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43619 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753640AbeDAQdL (ORCPT ); Sun, 1 Apr 2018 12:33:11 -0400 Received: by mail-wr0-f194.google.com with SMTP id p53so11606914wrc.10 for ; Sun, 01 Apr 2018 09:33:10 -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=Sguij6BUYmcI/aG/uJf25pAgKYfKPHGlg0T0oddtfdM=; b=WuVj81747q/FBhuiOyb1kZObRWTxenJrC44N/CQTSNQCmRF9u4mnJblXm+szqVjekf kRJIZeNvBx481xYAP8ZOBv/h5zQlMJ4AOX0bvki+6M0sdcqLy5liYV/1wS9dVx2RyyS0 HdGv4C43Lbq988TD2vstMg6DPAaPzgGWEEWMY= 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=Sguij6BUYmcI/aG/uJf25pAgKYfKPHGlg0T0oddtfdM=; b=NC6+bxONAKFHoRBhDtoD1rDZDWVQy3T9BbZ4HRkB4LVjom04cU0yXFzNIbNSUHnWhj RuAvMB0RMZ2Ow8qqdvSf27MmQFtrxtFOUam7iq8RWG+q871kHorLzPO4A5Pl5xITOiVq /Zeuxb1YE3PbVBswwXP0aB9UqsJtEfnfaRRULPJe+Zg/9hMvMrXgqPgCEU7Oln0+lFih AMCNMxT8z9hMIMI31owvWN9Wc/ItlYfdfJp6v9qsMaA8UyUlcLkIrdgSVY2zELUE1IAU mulFuD4bHCORf7czMaB0FSgYZYd8VrmDnEsvvZLNAusrO/BiPjdLibj4HIbEUbMB7GY5 oS8A== X-Gm-Message-State: AElRT7HKlVlsdTGOnsAGNyHH7tGeAiia1RgWBFDmfqFyE3j8GSnAtBNM PudP1bBBtLI25nySpy4j51/UQg== X-Received: by 10.223.139.199 with SMTP id w7mr4184346wra.219.1522600390088; Sun, 01 Apr 2018 09:33:10 -0700 (PDT) Received: from andrea (host187-49-dynamic.250-95-r.retail.telecomitalia.it. [95.250.49.187]) by smtp.gmail.com with ESMTPSA id q81sm10144461wmg.8.2018.04.01.09.33.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 09:33:09 -0700 (PDT) Date: Sun, 1 Apr 2018 18:33:02 +0200 From: Andrea Parri To: "Paul E. McKenney" Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 for-4.17 0/3] Changes and clean-ups for spin_is_locked() Message-ID: <20180401163302.GA5867@andrea> References: <1522230353-12213-1-git-send-email-andrea.parri@amarulasolutions.com> <20180330113645.kd3rjjuboz4gcq7m@gmail.com> <20180330120919.GA5879@andrea> <20180331131200.GA6084@andrea> <20180331232940.GE3948@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180331232940.GE3948@linux.vnet.ibm.com> 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 Sat, Mar 31, 2018 at 04:29:40PM -0700, Paul E. McKenney wrote: > On Sat, Mar 31, 2018 at 03:12:00PM +0200, Andrea Parri wrote: > > On Fri, Mar 30, 2018 at 02:09:19PM +0200, Andrea Parri wrote: > > > On Fri, Mar 30, 2018 at 01:36:45PM +0200, Ingo Molnar wrote: > > > > > > > > (Paul and PeterZ Cc:-ed) > > > > > > > > hi Andrea, > > > > > > > > * Andrea Parri wrote: > > > > > > > > > A resend of the "arch_spin_is_locked() patches" discussed in the last > > > > > days, together with a third patch/clean-up suggested by Will during > > > > > the review procees. The first two patches are unmodified, except for > > > > > the inclusion of Acked-by:'s. > > > > > > > > > > Cheers, > > > > > Andrea > > > > > > > > > > Andrea Parri (3): > > > > > arm64: Remove smp_mb() from arch_spin_is_locked() > > > > > powerpc: Remove smp_mb() from arch_spin_is_locked() > > > > > locking: Clean-up comment and #ifndef for {,queued_}spin_is_locked() > > > > > > > > > > arch/arm64/include/asm/spinlock.h | 5 ----- > > > > > arch/powerpc/include/asm/spinlock.h | 1 - > > > > > include/asm-generic/qspinlock.h | 2 -- > > > > > include/linux/mutex.h | 3 --- > > > > > 4 files changed, 11 deletions(-) > > > > > > > > Could you please also Cc: Paul to the next version of your series, who is usually > > > > collecting these patches? He might not have noticed these patches in the > > > > linux-kernel mailing list firehose which is way too high traffic. > > > > > > > > Also, could you please use "git-send-email --no-chain-reply-to" or so, to make > > > > sure mails 1/2/3 properly email-chain off the mail 0 in a non-nested way? Right > > > > now the mails are 4 separate mails with nothing connecting them. > > > > > > Absolutely. Thank you for the recommendations. > > > > I'm planning to wait for some feedback on v2 before sending v3 (or pinging > > on v2); please let me know if you'd prefer a RESEND of v2 instead. > > > > Paul: > > > > In the meantime, here are (for easy of reference) the message IDs of the 3 > > emails corresponding to the patches contained in this series/version: > > > > [1/3] arm64: Remove smp_mb() from arch_spin_is_locked() > > <1522230419-12275-1-git-send-email-andrea.parri@amarulasolutions.com> > > > > [2/3] powerpc: Remove smp_mb() from arch_spin_is_locked() > > <1522230457-12337-1-git-send-email-andrea.parri@amarulasolutions.com> > > > > [3/3] locking: Clean-up comment and #ifndef for {,queued_}spin_is_locked() > > <1522230518-12398-1-git-send-email-andrea.parri@amarulasolutions.com> > > > > The discussion on the previous/first version can be found here: > > > > https://marc.info/?l=linux-kernel&m=152223054224291 > > https://marc.info/?l=linux-kernel&m=152223531625930&w=2 > > > > Please notice that these patches are all targetting 4.17. Also, 2/3 hasn't > > been acked by the arch maintainers (so, we should hold off on this patch). > > Agreed, plus a couple of the powerpc maintainers objected. The smp_mb() > isn't hurting anything given current use cases, so without their ack we > should not push 2/3. > > I suspec that we are a bit late for 4.17, but who knows? If we are too > late, 4.18 will be here before we know it. Might need a bit of merging, > but these patches should not be hard to merge, so this should not be a > problem. > > > Given these patches/discussion, you may want to also collect the (related): > > > > https://marc.info/?l=linux-kernel&m=151981440005264&w=2 > > > > (you were Cc-ed): this has been stalling since more than a couple of weeks > > now, and I'm not aware of any objections to it. > > Especially given that one of the objections from the powerpc maintainers > was a lack of documentation. > > In your v3, could you please send 1/3 and 3/3 along with the patch adding > the docbook header to spin_is_locked() as a three-patch series using > the method Ingo suggested? I will pull it into my tree, and we can > go from there. If the powerpc maintainers change their minds on 2/3, > we can pull that in as well. (And I am back home, so should be a bit > more responsive than I have been for the past four weeks!) Nice! The new series is already on its way... Thanks, Andrea > > Thanx, Paul > > > Andrea > > > > > > > > > > Andrea > > > > > > > > > > > > > > Thanks, > > > > > > > > Ingo > > >