Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4180880rwl; Tue, 27 Dec 2022 23:59:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXvf5XU42D3QGkD4maI9BTl1X9kTsLrtxIYZ3oMrCtOAgL+cQvrb3taewT7wmySCfmcogPQx X-Received: by 2002:a05:6a00:301e:b0:581:254d:7a45 with SMTP id ay30-20020a056a00301e00b00581254d7a45mr9619487pfb.9.1672214391199; Tue, 27 Dec 2022 23:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672214391; cv=none; d=google.com; s=arc-20160816; b=sW/rZisgUmXiKIwUYszqFc3p/0zkGul0Dnup78xw8G2xXisAUJld0S8muGr0vPFdyi 6pIz+aQYf5CQ6GJbq2mW1byOpE4ynQplui1K3mvMh097fXnW0cNnru0beLHTOha2i1gf Ilj5fX0vTPobrVn84543iryFCvFJbWt668QPupOr9tCRkSIDrEyEqlCMYRkU92HobvTK Ec0J3gEQJxiia7JrJw4UuYx60OIrlQtDsNGoqmYKIq4Qwr5PkSoRqo+5LvVf9wzDkrAX Zq/LwbRVSXX5Kridc2AkjBoJ9cnyJF4dNusOXg5wabhp8WbfcQmWKkJQM8nDCauu4agH SXQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=YlT9K+nNZROVTOUHORSIFse19Y2J/aGZoUQYjJlMKJ8=; b=B/1CAleG/4Wd1C+k75bP6KsoguBwndbjwfmZvFOy/lsBd7LRgCYVkCxFFoStr/hFoS QVIdSB8kiJPYvxhSFeym5/m4D46jfe7icynFFFLRY/4AGuhykXn2NvYVxGIMViD52ffB va7kXGvtHMOCKqIzu9iiJ+ND7kEZDuxaKetrPUQjcUNhN4FoqeOuE3bprIFXANZGD5FJ WaK2H9a69WD6p3Fh+cUtYY3dlDnEiXMEuFXxdzgcYS9IyWjfeXqv+Y+ov5SaaJSiHUnv yA1cLEK6IJuGeIcZpiGe75nEKeZKiZtXehYEN3il2QnJGE8kIz1zD0ts6uK8wL0a5vtv NYZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b="bVHX/3Zf"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a62fb11000000b00571a5c5eaa5si15034204pfm.150.2022.12.27.23.59.42; Tue, 27 Dec 2022 23:59:51 -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=@me.com header.s=1a1hai header.b="bVHX/3Zf"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbiL1Hdz (ORCPT + 66 others); Wed, 28 Dec 2022 02:33:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232814AbiL1HdR (ORCPT ); Wed, 28 Dec 2022 02:33:17 -0500 Received: from mr85p00im-zteg06023901.me.com (mr85p00im-zteg06023901.me.com [17.58.23.192]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F183CFCDA for ; Tue, 27 Dec 2022 23:32:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1672212765; bh=YlT9K+nNZROVTOUHORSIFse19Y2J/aGZoUQYjJlMKJ8=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=bVHX/3ZfF4TvUj5vOmRUqs6WyT3dhAf4oPQKUcLvO20ItM29nymdl8hXyPUe7LpUo 6K5UExMlogf5uCxBRdc/LEmSh2aEZldrOXKJU8rpklciPiHHQo6c+sYUnp58qE+Vgm +XjyqHZIBEtegf4sXMZ195f5g/SOZtiqFqyRIIecAJDNv22j4EKuz5NSnj/AkyEbb+ Q6P7zuMTKd9bR5AD3heQgG4cIACAj09GGZ5qWFHoITldAfWEDvhGrkuto2rE5iQEPc FbEfEenGN0Vl1O253zthNH51+7vSuh/c5BY0QkUD9r+2EtuyR6w9kfFn1iN7YJn10x E+r5GK4m5uZ9w== Received: from smtpclient.apple (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-zteg06023901.me.com (Postfix) with ESMTPSA id C77B66E1613; Wed, 28 Dec 2022 07:32:44 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.23\)) Subject: Re: [PATCH 1/7] rust: sync: add `Arc` for ref-counted allocations From: Laine Taffin Altman In-Reply-To: Date: Tue, 27 Dec 2022 23:32:33 -0800 Cc: rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , linux-kernel@vger.kernel.org, Will Deacon , Peter Zijlstra , Mark Rutland Content-Transfer-Encoding: quoted-printable Message-Id: <1013AB25-40DF-435B-B642-08C2FA4DBD91@me.com> References: <20221228060346.352362-1-wedsonaf@gmail.com> To: Wedson Almeida Filho X-Mailer: Apple Mail (2.3731.400.23) X-Proofpoint-GUID: K8Z-U9dTc7-iCdaPA-UAsfE7b-ivCS8W X-Proofpoint-ORIG-GUID: K8Z-U9dTc7-iCdaPA-UAsfE7b-ivCS8W X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=880 mlxscore=0 phishscore=0 clxscore=1015 malwarescore=0 adultscore=0 bulkscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2212280060 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Dec 27, 2022, at 11:27 PM, Wedson Almeida Filho = wrote: >=20 > I suggest that you read the > comments at the top of refcount.h? Thank you for correcting me! You=E2=80=99re absolutely right, and I = completely misunderstood how `refcount_t` works. Sorry for the noise! = I retract my comments on those two patches (the other two comments are = unrelated). =E2=80=94 Laine Taffin Altman=