Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8447393rwl; Tue, 10 Jan 2023 13:48:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXuqFg33HSfbN/MF3+I2oKWi0cgg3fBKyH5jwCraJDNbBB5lZ4yrOFbCyu/J/5zjOtEArJKF X-Received: by 2002:a05:6a20:c19f:b0:ad:600c:54b1 with SMTP id bg31-20020a056a20c19f00b000ad600c54b1mr89368809pzb.59.1673387307363; Tue, 10 Jan 2023 13:48:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673387307; cv=none; d=google.com; s=arc-20160816; b=qwf0dbxLIp0LhgieGVJ93Cvixd2Je9d79mSrLc2Ra0aXs5KmUaK4WTmR05I1dDJrBN jST7/I9oUvgHI1vwT1CTjR0EVgV6sWd6sKeQHK8+nhT8G63k91xv33f5PrGW6cHwOd96 PlBya3Zy+ej6QCErVb8A4zzNwOyIVnBbXEQQ2B7sNrGcJ2jcZE7zuNPCpHfeXwjvVEuP fMRil6jEfY90k4SyMnRRaocD63EsVGSVxLRqSyovhQwwm8ewHRXDgc17MqSlGFFsCaC7 ae20uwwOi9Nx77f0LBPE0T82urklm36aZ3X8eaXJN5SNCCAKH1vdE4ZDQSDiW7u7T3fX Fz1w== 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:feedback-id :dkim-signature; bh=LYm70hZF7lxX+Iq4fbX4lv7bXwpjZT1o5KlvitZ5mkA=; b=XeLOBa6tuHE3/8Dt3hE572Vx2sAEo9B0InriZGzBcpYpBxQqvqQ3C4noPo7We955f8 n7FU1gu1tNkyJvIWNfEnS+g4dIuItACqIZ8FK6ox1SeNEJ+L19YuisIMCGrUnjtjQ8DU ppEydBF8+QdDKiSKzVHbMM75rvnJdo9QJOfN4/2Q/1tA3zNX4oSybsUKe4VDHCEWWw8i JGYmd/F2eM3a/F0iukXCyS6reQhHNqyPnY0rbLCRxD2hiRe5ZfXJiVi/FiPc0q//UbWB 0bQTpY4AODPreVNbhS5XY/EVw7qwYLsF79Nip3SHpJvXsTzGRn5/DxThG+0stPlPP84i UDsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VbXb0baY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23-20020a63fb17000000b004a173aaa75esi12913628pgh.548.2023.01.10.13.48.20; Tue, 10 Jan 2023 13:48:27 -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=@gmail.com header.s=20210112 header.b=VbXb0baY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231645AbjAJVhu (ORCPT + 55 others); Tue, 10 Jan 2023 16:37:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjAJVhs (ORCPT ); Tue, 10 Jan 2023 16:37:48 -0500 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD47CA; Tue, 10 Jan 2023 13:37:47 -0800 (PST) Received: by mail-vs1-xe2b.google.com with SMTP id v127so9351565vsb.12; Tue, 10 Jan 2023 13:37:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=LYm70hZF7lxX+Iq4fbX4lv7bXwpjZT1o5KlvitZ5mkA=; b=VbXb0baYdAPvzDR/DPknNiSqyZqoeY7d6/BdSO99h5gwYo15B2g/t9RuF+k53+0G6p csetOhRnW7RiQrMXMo5dOM8sDQ6REMA/sFCcq068y4YzGvfvSzB1F2WcHSAri4Lem1pJ zGX1wcS1Ce4umVl/eQkFnmescmTUPZLqTyG23ZVF1IoUY/tdAG4dDPWK9CarCS7X5aMT fY7WV8rsbOVMiKHSrSZor59VqhS+xp+ng8tq9mhm7bzKmXmOz36n+JWtp0ZIZIWnmA4G 3pvZ+PPrid1rD8Lml0ldGXomxTAiBLRrEiQ45d8LCCqC5XtACjT5ffSYG1FR5QggUcWU A54Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LYm70hZF7lxX+Iq4fbX4lv7bXwpjZT1o5KlvitZ5mkA=; b=PE8N5fERQq4jSEqLMNgnVv15rPWSqoKI7xlbZwjkDmIRqoHDPwbmT46fCYi9rMyAHi B7FcTY8NCsyTp7+fxVOy1NhaKyd0x9Uk0WPMf4HZb7cW2vON3rUemWSrshB47QKLUIlg vJhUhepVPyw+Fbzo6qCg+Kfjg7psJVqg35oqkFWhdYeJRNMFpSZzh+cJFgnhtjhwu0OT lPpoomjnYYoDV/ox6T54PJclILACyVhibuOr6PBfW6SWaBAquc2okgN/e0LeTPXsSXA+ JJ6K9xhh4Dx/UlouHhzmiX7yVQTET0so82UGbSr8QdiJiVNrMS0tZ7voscDSRz30VmBO Pq/g== X-Gm-Message-State: AFqh2kpYbgO//jVytV1mOL821RQM+MRoc9lxnl7LdWTqRJWK6Gkwzj68 8A/oVZYTbx0OCqUyuYs46VUUqRDM6NM= X-Received: by 2002:a05:6102:dd0:b0:3aa:8a33:ce9f with SMTP id e16-20020a0561020dd000b003aa8a33ce9fmr47022022vst.3.1673386666651; Tue, 10 Jan 2023 13:37:46 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id ay40-20020a05620a17a800b006f956766f76sm7776264qkb.1.2023.01.10.13.37.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 13:37:46 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 9332327C005A; Tue, 10 Jan 2023 16:37:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 10 Jan 2023 16:37:45 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrledvgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeeuohhquhhn ucfhvghnghcuoegsohhquhhnrdhfvghnghesghhmrghilhdrtghomheqnecuggftrfgrth htvghrnhephedugfduffffteeutddvheeuveelvdfhleelieevtdeguefhgeeuveeiudff iedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsg hoqhhunhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieeg qddujeejkeehheehvddqsghoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigi hmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Jan 2023 16:37:44 -0500 (EST) Date: Tue, 10 Jan 2023 13:36:25 -0800 From: Boqun Feng To: Peter Zijlstra 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 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 ;-) Regards, Boqun