Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17377149rwd; Tue, 27 Jun 2023 02:03:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79cni8998EF5XMKW+JFlRcWYwoGOvZJUbiqBeEftJViBYbjHM5ax0AL3tyIDFYg8igOtBR X-Received: by 2002:a05:6a00:3a0a:b0:657:bdf1:cce1 with SMTP id fj10-20020a056a003a0a00b00657bdf1cce1mr41115558pfb.25.1687856589552; Tue, 27 Jun 2023 02:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687856589; cv=none; d=google.com; s=arc-20160816; b=aMweUtoCUxIh50IrFRt5HMQgRduz06Pv6xKHWmo3vplsC/aqS64R3F6h+bWZ0IOLod meoIAnRILuvUMUUFjBX6MtRk/+QaNhQFSv/UeoHgkcrhPClUNfzThCQuj7JXv6krcSY9 x5zmuf/+KvYrR8X0yiQPDSH1lgl5jLjtRmWA3W/x2yQHpcxuXPCwPsy5yp5bRafdHb73 C2qQUmD8Wjqoe5jrjd4fWMsARbry69iw54/I+MS19gPXqt8tp6w+87CKLbVhcs7rKoD9 BJQl9xRbsqsNTZuJ5cE8hTXV64GaaUg+vus4rA5jdHexJdue4Bfs/IhphsbYiEgoFsnS 0M8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=ZX1lTnuqVI3xAbN0fkRezsoOIB0K6fV+WnbtqyeDXzY=; fh=vIXIoZZ65TzKBG2LFnDykpLhCv5POYI/sfuX1nG61fE=; b=rbXN/Gx0MoNxVaFUgNDVSxvGLPaYgbjiz11RfnF/NL1UVe9Sutp8zo2jyw0pHTWIKx 6y2fExkpTxPaB4FTGclGV083gMppFsuCqHwjLNSoOAVgjcYulslDWTKIdTbzoQsbXDo4 6AitWDLVJKYXmyRz9cnCvd8naA025jaytlJCjD6OdrZ4BESM2EtzLQLL9fdY4JmqOGgr CCXR8oKI6NbrRHB/IIqtqvHy5B/jHWut7DqAIYDaLnovwS1PalsSytRU3Q6m6Kl+ugpq lbSjGsIDxEYO2gqtJZnmXcK98NORYpbp/0gpEGZNcIF8DgJqbMSGk+B0bHkH7MzytPc4 VC5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="NKcD/UfQ"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020a63201a000000b005030925d31asi6911521pgg.203.2023.06.27.02.02.56; Tue, 27 Jun 2023 02:03:09 -0700 (PDT) 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=@google.com header.s=20221208 header.b="NKcD/UfQ"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbjF0IjM (ORCPT + 99 others); Tue, 27 Jun 2023 04:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbjF0Iiv (ORCPT ); Tue, 27 Jun 2023 04:38:51 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F0ED35AE for ; Tue, 27 Jun 2023 01:38:05 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-573d70da28fso58805897b3.3 for ; Tue, 27 Jun 2023 01:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687855084; x=1690447084; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ZX1lTnuqVI3xAbN0fkRezsoOIB0K6fV+WnbtqyeDXzY=; b=NKcD/UfQpGef7fdG3Tncm/U34Ba3BIuBrO0YDK445gyZQVjIL/6eUBqRmFl8t0vS/s c+Lkpdamq7kXAJasvS1boxlS4oEC4i8uvpZ3+Iee1hyKcQmLXyAIWDKmOfUHJLieaYsa o7Rsc1rnc/8w3lXhV9mMCOiS5gNBgSEEDcoNMTlXcP2d1ILVJXZbXRmkv8a7/HXV0PFX uqnuARTlCnK4ui11KrIKZhbF3bM92C+b/D/D6PX6dz1P19awu1TUX8O+5vXX8vtD0U/S wovBmhW7jVUbVYX88X/dtseKjkz6PUxwBB0bvVR+Se/V/MFWahX7DB88KGYdy4A1uMye IY3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687855084; x=1690447084; 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=ZX1lTnuqVI3xAbN0fkRezsoOIB0K6fV+WnbtqyeDXzY=; b=iFcWUVaNyokbmeVfCX66TnZFGKzX8AqN/HSwMXOSewFmJZCcd6OURNLzuHL/LEOb8u cjgDMtil64n+l9aOi4paFSeZuglp/H66Nn3NdmHzlyg6fwI+9EbQAPS5bQdSA3pR2HIb sySTHDEX/Jt5wHqB263ZA9slpamLIrHpCObxCw/cELyg6Ogae6UOHyqMHnjsbJwwN3g1 s8Mt8kDVgAjyz9Vn/B6CxDBhypUVAfbiKucZlT4VJBY6HMx/tLlDIbtdaFKpv+H/riQS vvnq0LwIZXJPSyzhPVtn/bJNRtFE7st22syA+g6Heu1C5o4HPGJnaNLJ7O9Crx2G9NcU DM/Q== X-Gm-Message-State: AC+VfDz23C8cJn0fkkiY5B4o6eUecHfNv219A/0VH2T19ykLzPur3s/O B2Qgq4mWHeZFEbsy7qA+COfZ9YTpNKK4Cks= X-Received: from aliceryhl.c.googlers.com ([fda3:e722:ac3:cc00:31:98fb:c0a8:6c8]) (user=aliceryhl job=sendgmr) by 2002:a25:d886:0:b0:bc4:5077:f59e with SMTP id p128-20020a25d886000000b00bc45077f59emr14311498ybg.13.1687855084298; Tue, 27 Jun 2023 01:38:04 -0700 (PDT) Date: Tue, 27 Jun 2023 08:38:01 +0000 In-Reply-To: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230627083801.1737103-1-aliceryhl@google.com> Subject: Re: [PATCH v2 8/8] rust: workqueue: add examples From: Alice Ryhl To: benno.lossin@proton.me Cc: alex.gaynor@gmail.com, aliceryhl@google.com, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, gary@garyguo.net, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, ojeda@kernel.org, patches@lists.linux.dev, rust-for-linux@vger.kernel.org, tj@kernel.org, wedsonaf@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 Benno Lossin writes: > On 01.06.23 15:49, Alice Ryhl wrote: >> This adds two examples of how to use the workqueue. The first example >> shows how to use it when you only have one `work_struct` field, and the >> second example shows how to use it when you have multiple `work_struct` >> fields. >> >> Signed-off-by: Alice Ryhl > > Reviewed-by: Benno Lossin > > I really like that you added these examples! > Is there some particular reason you decided to not use > 0 as the first index in the second example? (you can keep > it this way) In my head, it felt more natural for the first field to be called 1 and the second field to be called 2. But it doesn't really matter which numbers you use. Alice