Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp300685imu; Fri, 25 Jan 2019 02:33:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6kj71UdtNEl79amDf77HvoRQNwdiiT1CsD+NnNk1FyyDuUGkZpI0MPD9zXenHPtmwwVd9p X-Received: by 2002:a17:902:7588:: with SMTP id j8mr10512224pll.215.1548412385498; Fri, 25 Jan 2019 02:33:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548412385; cv=none; d=google.com; s=arc-20160816; b=JHgtql9asVWn75b+LMUJej85yEr2hy2VEYiFV7i6b/33SrmLEcHSFFpyzyURaQeNdv 4mkx0t1luN87QcfGa9YPHQfnUTeI9Ckl5mKXSwBBKDCk+AOeBsgMWriMaG6psGuBY8EO D12s5Qr1KmpiTn8ZikqtAJ/LaostrEG8y+8agoSwRDYGSUPFBUYFPUiZbLhC4UmIsi2n 1adHyLrHdWfl0xVQioqbKquo8nj+T7PqwR41BWVep47GhPeta12gOLEmUQ1kdz2bNqGC FIpj2oTFsidzsexhXowa0Ws6nQHfX7HzSsyjoTJXSh26+pLUqPr0oo9Z9ZaieDcj42Za lNAg== 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; bh=DtpvupyQ8gugIEqKFHIe1FVOq/MjQoGnEAn18erMFMo=; b=dHKDcOfFOoOPpOqZ+P/NYA+Ykl10+Q3VMHOkc/XJ8MXpJf0qhPy9Qs14Muwwhqag+l nP+BWXJP9AUzLC1v1g/Q9hRHEFKm/nwZxSvFLv0yvsjVuSHUHJJio8K7MV0c2QGOMg2o FC1BLPdwQ31DphIs4jWjb1rll9byxtiySuroOdNcRUquaK785xPlCLlfV0w73412+Vkv oFAYH10QX3DcEnfNZcy1pTDQA0y99t1Roi4w/M0EZQm8wS6t8W+XTBsbd4Pucu+5OKeh BE++6nkHpBCZKaQy6oJ1KsRbPVXyOPissHgDBLCmH08hv8fbelaCD/vqgDeWOFrryi8j rFBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0mB3iUPT; 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 76si24499169pfw.66.2019.01.25.02.32.50; Fri, 25 Jan 2019 02:33:05 -0800 (PST) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0mB3iUPT; 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 S1727983AbfAYKcE (ORCPT + 99 others); Fri, 25 Jan 2019 05:32:04 -0500 Received: from merlin.infradead.org ([205.233.59.134]:40378 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfAYKcD (ORCPT ); Fri, 25 Jan 2019 05:32:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DtpvupyQ8gugIEqKFHIe1FVOq/MjQoGnEAn18erMFMo=; b=0mB3iUPTJjOYd7E5YQD1Ql/Dz IPq0N+eNw+A+Q6JhAZAEVUc0PA3dlMKN4ylkKrnNuMbSP8VejAYhEuZz6HOSH3TFO3xZUDcHY/dQF N/TCjiUBduBrrQOPgVv92eCWA5Mi0ToPHEXtVHgHBwqcFlDYy6ru0zVqxva+d2I9e2g1hljM97z+b tX1sbJCqs+fxGe872MaPkwBs7MueGU/UfleIOfBBFaOQy8s4hRUi9QFOUHsyEjKi2zHEvPuxP3MM5 vFgbiPoMXUaeq8gDpzV3fmhN2QazlpGC3wpseB5Ic445wFkrzcVo/VUqNdrW6ITRCA6C1lzTmj9Gt PQlwOEZxA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gmym4-0003vI-3o; Fri, 25 Jan 2019 10:31:48 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1F536200FC6DB; Fri, 25 Jan 2019 11:31:46 +0100 (CET) Date: Fri, 25 Jan 2019 11:31:46 +0100 From: Peter Zijlstra To: "Reshetova, Elena" Cc: Kees Cook , Alan Stern , Dmitry Vyukov , Andrea Parri , "Paul E. McKenney" , Will Deacon , Andrew Morton , Andrey Ryabinin , Anders Roxell , Mark Rutland , LKML Subject: Re: [PATCH] kcov: convert kcov.refcount to refcount_t Message-ID: <20190125103146.GD4500@hirez.programming.kicks-ass.net> References: <20190121131816.GC17749@hirez.programming.kicks-ass.net> <20190122090456.GE13777@hirez.programming.kicks-ass.net> <2236FBA76BA1254E88B949DDB74E612BA4B92711@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2236FBA76BA1254E88B949DDB74E612BA4B92711@IRSMSX102.ger.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 25, 2019 at 09:02:42AM +0000, Reshetova, Elena wrote: > > > I suppose we can add smp_acquire__after_ctrl_dep() on the true branch. > > > Then it reall does become rel_acq. > > > > > > A wee something like so (I couldn't find an arm64 refcount, even though > > > I have distinct memories of talk about it). > > > > In the end, arm and arm64 chose to use REFCOUNT_FULL unconditionally, > > so there's no arch-specific implementation. > > > > > This isn't compiled, and obviously needs comment/documentation updates > > > to go along with it. > > > > Elena, can you do the doc updates? > > Well, doc updates should go with below patch + and additional testing... > > Peter, should I create a full version from below with doc/comments > updates, run the whole thing via zero day and send to you if it all looks ok? If you have to time to do so, yes please!