Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8490003rwl; Tue, 10 Jan 2023 14:28:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXspTg6jZEZWI4u9IhIrpEDqAEkoM3frQt1SU/9/PCZYn6TV3OELE7ejTqbQFJ52BGZJv3nd X-Received: by 2002:a17:903:40c9:b0:194:45d0:3b21 with SMTP id t9-20020a17090340c900b0019445d03b21mr2460929pld.4.1673389728449; Tue, 10 Jan 2023 14:28:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673389728; cv=none; d=google.com; s=arc-20160816; b=ZrIz5UBwU+KkbWFBST7XhUpttB/DIQ19LCdxYKfIO67w0qvVT5t3Z6rBbRgJMuEkz0 sJjd6ovY5aHn8xXIHI9lhdcXOz1YLUwuJ/LA+FQ00gQMztsAdCzQBZn7H3Z6prxlLr0Z VTsfBCUmYtCwcBH7ulxJy1d5ZwPWP/Q3eFjHHkRi8M5I9XzK3oe34FUkT2xF98WYZOpA kDkIfKYT3ApvWLgfO6resGnpiU37dRXAoEpr3/07dgXdw8CBvN5UXKkyGOq2DI+HPQ8y EABoZ8fDEMMUAGhTGwbzISawHxlZxYavUYVCF1bkbceTT9ar140rM8/GyfXt0owWBC2y AaKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6plIPH8q9vzdITA82ASBFJ0eHrxSExO14Sl0/pAdaRI=; b=tF+wXAvjGONohSEH9VJ1MscLQTX9pYXI/+HcWoZthAnpx+TnKwwyUMzmfLhGQjMXzx 6JIkndweS5jZCmowL8p1Ywnr0+1n/ODgWrNSp1ClQRasGt4MwmdBC8pIAOvZtUpFLoPY IRGD7pIjJFzxuAyIzXVqAXnNB4df130ObgKJhZYdm0NGw6JIluSVpxADUFwozwRzAfLJ 2FYnechTCrWfM3q6WXOA+di5vAaIX89xRDRldFry8dtL/VH4AHSo87pcthqQzcOxrmz8 cuaJ1GIT3T0asD0FTCrMes17JeI2dxfcI+id/i2I4Y+L0P+CwbUvt9Zz//M3fmLAhrDp e/mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fJAmMham; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170902e80f00b00181dc40f516si13252089plg.146.2023.01.10.14.28.42; Tue, 10 Jan 2023 14:28:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fJAmMham; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbjAJVyu (ORCPT + 53 others); Tue, 10 Jan 2023 16:54:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbjAJVyr (ORCPT ); Tue, 10 Jan 2023 16:54:47 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39F95DF89; Tue, 10 Jan 2023 13:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=6plIPH8q9vzdITA82ASBFJ0eHrxSExO14Sl0/pAdaRI=; b=fJAmMhamBtekMM+h1QJMrul21z Fd0AFvwCPpOSvOj4drRVTxskDcFDX2QajWrUpxMifpvVcz0/AUBmxFf67SApSYoEPBtAUm7wFgf8J 9ybNKgTNiC3BTEm93s+Vd6C0MKiPz7jgYOXGT1eN0v/71pISf+gzAh8WkC5OBnwGIqq2ETuy5z8ew 6SXFgBC03CcfQQAgHgULO8xfu1JNS6PAgYxxBwleWBuoZganYhYVdtrNKpBrlqJJcM2OR8pwnc/T7 OD3v7q+/UIrRkM3TDU3SWL65ouRTP4OjPY6p+QOWLOIxyeHKaykpkbJ8TyKj8kLhida9QqKnmobdT PYz2zOCw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFMa1-003Yvd-5r; Tue, 10 Jan 2023 21:54:49 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AEE76300327; Tue, 10 Jan 2023 22:54:35 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 68F8A2B58D074; Tue, 10 Jan 2023 22:54:35 +0100 (CET) Date: Tue, 10 Jan 2023 22:54:35 +0100 From: Peter Zijlstra To: Boqun Feng Cc: Wedson Almeida Filho , rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , linux-kernel@vger.kernel.org, Will Deacon , Mark Rutland Subject: Re: [PATCH 1/7] rust: sync: add `Arc` for ref-counted allocations Message-ID: References: <20221228060346.352362-1-wedsonaf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 10, 2023 at 01:36:25PM -0800, Boqun Feng wrote: > On Tue, Jan 10, 2023 at 10:20:50PM +0100, Peter Zijlstra wrote: > > On Tue, Jan 10, 2023 at 12:22:47PM -0800, Boqun Feng wrote: > > > > > First, I'd really appreciate it that Will, Peter or Mark can take a look > > > at the series and see if they are happy or not ;-) > > > > I only have 1 patch, and since I don't speak rust I have very limited > > feedback. Having to use out-of-line functions seems sub-optimal, but > > I suppose that's a limitation of the Rust-C bindings. > > > > Afaict this is like C++ shared_ptr<> and using refcount_t seems okay for > > that, not sure what else you're asking. > > > > Thanks! I failed to find that you were only Cc for the first patch.. I > cannot speak for Wedson, but the rest of the patchset are all based on > the first patch and purely in Rust, maybe he was avoiding to "spam" your > inbox ;-) > > While we are at it, for a general case, say we provide Rust's interface > of task/kthread managament, do you prefer to seeing the whole patchset > (including how Rust side provides the APIs) or seeing only the patch > that interacts with C? > > Again, trying to find the sweet spot for collaboration ;-) Always all patches. The more effort I need to do to find sometihng the smaller the chance I will. Also, I get so much email, I've long since given up on reading it all.