Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1600657lql; Wed, 13 Mar 2024 02:52:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSPe8cmVF+dStzikQGqEP2M2rxiVz+BV4iUVd4qgdI9950w2U5/BE16hF5zhbpsuU7sybOlqccv3Z3+VZLfEvRxbD+noOeah6j22F0dg== X-Google-Smtp-Source: AGHT+IH71G68JZDCv6qm7f3COaOQaG9gaogV4dt9/wpo1dW0lElRgNK06Kph10eSKrHUbue92Jal X-Received: by 2002:a17:90a:9b82:b0:29c:6152:a10f with SMTP id g2-20020a17090a9b8200b0029c6152a10fmr886541pjp.24.1710323521957; Wed, 13 Mar 2024 02:52:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710323521; cv=pass; d=google.com; s=arc-20160816; b=AyzCyvaATeMclJcs9KiDaBqAyKm2ziQjPHUmL3JdF/n5pebbGydraY7mtPX9qbTx1y OiW7wmQOeDox83KkUI3drAGBacBe23Tggb4ELW/6iiiVDxn9KuEZT5AVmp26NXrj0CNO lZBFElgUOJqhS6Z/MLAmLRt+DfV/PxKYZSHJrGwVbbiYEbK7KfF8RjByaAH+5RGhXANr FSakbce928OeEFaTIbArEYOZvRr/BBhetbs69oBeRyqhN0spKbttArmNxOgWwMX+LotR 1fUmF/EivexkHMsxJ1farqLQUseO8fH9jn711GxKtT3sag/ht0a5ueWvrhJK7G5MsQ8j qs6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=XRJfQxahYGAkNrqo7I2PmE92A0G8ANlJPrSGDn6Zu48=; fh=4m0OaqC9H/MtP3onVjZ8PU7BKiIM9hTzplkxT1q0bVo=; b=xcvPbUkZ420LqHEjETG+zlD/SVq4G9jinHeOeA+EudjfCpPAgWX+UkbySJuTFGfeZv 0YveuXuF8uucBpW7Xp5Z4E7woZEtNCFE7jsm13BIYJ560MNljADAbUYDu4X7qHbKVbC2 KFbygC6rwNCLdAjlePGCxHhPXCjErmLZrEDoyYeHedfeYefA7ttB4t5/icsfF/RVQAbD t+8kdSw0m8+u75J79CNqHi+6qlYMOw8mjiHbZNBhMzwJ6dqQuQqdVHkar++PjlBZeQkG RPV0Ls8YwKf0pCj+IK1WHcF/oqlKWvBakZ0rWy1dCPCxED3FqjRRMgwvG5OTgHDmeuHk WhJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B33RN2S6; arc=pass (i=1 spf=pass spfdomain=flex--aliceryhl.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-101302-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101302-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w8-20020a17090a15c800b0029bb6ed5c4esi1114424pjd.82.2024.03.13.02.52.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 02:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101302-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=B33RN2S6; arc=pass (i=1 spf=pass spfdomain=flex--aliceryhl.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-101302-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101302-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 964F4282331 for ; Wed, 13 Mar 2024 09:52:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512D53613B; Wed, 13 Mar 2024 09:51:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="B33RN2S6" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE7942C689 for ; Wed, 13 Mar 2024 09:51:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710323467; cv=none; b=Ze1Xs7COANHmqvz0j0rFXYzops/pU9QKEkLRQwgYsHf0MjhdtBUOBzwhXqeuY6ya4nJKR5VV0SCqEifUIfVsuKUChXF09+tp6fQK444SZ/U+WIaPQJfdenTQswjAJa9BMYxlIK1+GruHOsX/c+4ktEsxz1O91wEuhwUjM2WbDNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710323467; c=relaxed/simple; bh=VALqgjTPnatoPxcvD7oU1/NWjcytUzXnQ7aea0zfd7I=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NT3/B0ZeMtqvCQUUVnYiNkIX2KovkkK2EVgu3LfSQqTWKI+UuvumzfIiNOu1nVgtrdz/qhSHcWFSIvtOiFpUYlFnGEmHlsmI7XUo2yTDpYhqkvcK9YKHyIWBPhLBErBkze59+WOeF8Rki6Jxup0dZ55m7kY0waOLw7TX67XeS88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=B33RN2S6; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-60a6051556dso20835507b3.0 for ; Wed, 13 Mar 2024 02:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710323465; x=1710928265; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=XRJfQxahYGAkNrqo7I2PmE92A0G8ANlJPrSGDn6Zu48=; b=B33RN2S6UPtn4nbljYXOGlyGZtZrF1eHxck7ZmwxZHmT4XKoLcO8kOzgyOKriI38jz dB4yKxutVHtmTBgM0UzKzqw0MOlDlEZV3JYi+Gwill/nOfFq252DVeAhMdGrFdwY/KhU tFaX9oqnuVoOUjDls4yTXhcpZaTQIx+w8EzoKkvT4rAJXmNX8sVBP7XtuyaD25w7m+qe 91ftt27nlLMvKdWOu/YJEzBHhTTZiNd5IgiwSaqqKd8kt3lp3qAbKjufNz+Ytr0QMxou up+5kIL8YHpjOuRoTUQSF11HZjmPzNj9VM68HcoxXZUIRZJRDa6g4DZ8f1mejOJ3t5tX Fq/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710323465; x=1710928265; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XRJfQxahYGAkNrqo7I2PmE92A0G8ANlJPrSGDn6Zu48=; b=kxIeYYxHkt5vdMFsIXq2/hpB0WeK0YMy/K7KCyM/YXNwEi7JeSEUk1iyf33zj3LdQB Z7hxXOsu74w5T2UfB8hkb1Y2DOeJBg+mw6faGIvBgyeuTpgffyvVmIUh+zNgq9BCSMhZ YLFRu5NI3CZTGpGY5ClkTEeMVRvqj0kvM/i0t1f7uH+Mx2iCFECTRh/pbTinhHk5s7nz 6eRSzsiulZ3p9V4ZXDeqloIjKl4mbdzXH41ok2u5C0dgjp8l8UCPCaYvpa5lAn//n51Y 8z0TB5rv5jhgXU0fRtdquLSTI0SCnLhupUMpA7E3bLKWwr1rGDoG93blg/YyxRCH3OfN eWeA== X-Forwarded-Encrypted: i=1; AJvYcCWZv4rbt2IAN8/lQYk0znwX4G6tdsLePPz8oAvanWjTtfdvfSWKJ2/jwplTqi5Ho4RHbKb4wxaB99Vb16NlYog5l84d0KC2S9qF/7OP X-Gm-Message-State: AOJu0Yw5NG436wCgKB/RUJ0kdbDsSLyddR2QMQdqWcUABfZ7thnY4jUL kww3Mva8hWsvtZ6DYLMXOmjm2lFmGkB6h9Id/m5X/u0mzbnjhwZZ+jh3ymVkf3qLikYZGvXb+VF 8cvkkCoj1gi9lUQ== X-Received: from aliceryhl2.c.googlers.com ([fda3:e722:ac3:cc00:68:949d:c0a8:572]) (user=aliceryhl job=sendgmr) by 2002:a05:6902:188c:b0:dcc:6bf0:2eb6 with SMTP id cj12-20020a056902188c00b00dcc6bf02eb6mr61977ybb.6.1710323464848; Wed, 13 Mar 2024 02:51:04 -0700 (PDT) Date: Wed, 13 Mar 2024 09:50:59 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240313095059.844387-1-aliceryhl@google.com> Subject: Re: [PATCH v3 2/2] rust: sync: add `Arc::into_unique_or_drop` From: Alice Ryhl To: boqun.feng@gmail.com Cc: a.hindborg@samsung.com, alex.gaynor@gmail.com, aliceryhl@google.com, benno.lossin@proton.me, bjorn3_gh@protonmail.com, gary@garyguo.net, linux-kernel@vger.kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, wedsonaf@gmail.com Content-Type: text/plain; charset="utf-8" Boqun Feng writes: > The code looks good, and FWIW, I added the Examples section for the > function since I at least need something to run when queuing it to > rust-dev branch ;-) And I think it's overall good to have examples for > every `pub` function. If there is a next version (which is unlikely), > feel free to fold it. I can also send it alone once Miguel put your > patches into the rust-next branch. Thanks! If you have reviewed it, could I have your Reviewed-by tag? > From 7d26d1177a2788ba96c607fd9dc45baf469fb439 Mon Sep 17 00:00:00 2001 > From: Boqun Feng > Date: Tue, 12 Mar 2024 10:03:39 -0700 > Subject: [PATCH] kernel: sync: Add "Examples" section for > Arc::into_unique_or_drop() > > These examples provide better documentation and can serve as unit tests > as well, so add them. > > Signed-off-by: Boqun Feng Reviewed-by: Alice Ryhl Alice