Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B94FC64EC7 for ; Wed, 1 Mar 2023 11:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbjCALJx (ORCPT ); Wed, 1 Mar 2023 06:09:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbjCALJs (ORCPT ); Wed, 1 Mar 2023 06:09:48 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D454C1554F; Wed, 1 Mar 2023 03:09:46 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1677668984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DDmcH3vpdG8t16J4lZS4RgAS5+xck9hqT5eR2siX/do=; b=u9yZ9HmFB9OI9iNsUUl07BWnSLlAZZh6UapAfeHg/Oq1aShdOH7EM04f6rIU52wf29cUHt dNnoFKTHxY/DYOWKsofnScXuel8emuHLkxYV29sMQkNHDDY6uxYxmk/PD/1qlgJZdR3thf +1hMAldT1pWl4HpX7p3UCTHMlAQkunNOiXd7ATRTsgCbTu9nXwJSaFXKrsJfoP9jpfQp6Q lu4OICEBWtYdzxcXZoQ76McLXNeSTmCbZCzhnigjzQ3Wm12xZiLtT1Ixf+Tk2enq/pa+hX 0yRG/YYKPFnXWEbP4kf2r5pBgVFY2WReiOKCSUAGLAc05M/nqXW2DA7ETTYJHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1677668984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DDmcH3vpdG8t16J4lZS4RgAS5+xck9hqT5eR2siX/do=; b=Q+P85H//Wd5esL/W6IUnHt1E+WAfvha2sSwqh5DIdDMjj6rL3D6yJ98h5QCfxB1iMPpAij 94RLnjf1Rs255xDw== To: Linus Torvalds Cc: LKML , x86@kernel.org, Wangyang Guo , Arjan Van De Ven , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Marc Zyngier , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: Re: [patch 2/3] atomics: Provide rcuref - scalable reference counting In-Reply-To: References: <20230228132118.978145284@linutronix.de> <20230228132910.991359171@linutronix.de> Date: Wed, 01 Mar 2023 12:09:42 +0100 Message-ID: <87pm9slocp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 28 2023 at 16:42, Linus Torvalds wrote: > On Tue, Feb 28, 2023 at 6:33=E2=80=AFAM Thomas Gleixner wrote: > This may seem like nit-picking, but I absolutely *HATE* our current > refcount interface for how absolutely horrid the code generation ends > up being. It's gotten better, but it's still not great. > > So if we're introducing yet another refcount interface, and it's done > in the name of efficiency, I would *really* want it to actually be > exactly that: efficient. Not some half-way thing. > > And yes, that may mean that it should have some architecture-specific > code (with fallback defaults for the generic case). Let me stare at that some more. Thanks, tglx