Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp470854lqz; Sat, 30 Mar 2024 04:59:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+LshAwFX7dTZQ8yHu0/qtTl32zhA6kZ6Sds+Tm5Cj04U36jDD3SX6aZXIRtT+mn7QKAaUa4/6QJ06PNvLntY1bl6Kid8jIFzTTRYY4Q== X-Google-Smtp-Source: AGHT+IEUB8mUV/pLDnSUM685euqIUO5vsxfx8zGmZKI/HBQQLRqedbNovaZRaCjYLeBm0Q2ucziu X-Received: by 2002:a05:6a20:7a96:b0:1a3:6474:3953 with SMTP id u22-20020a056a207a9600b001a364743953mr4763657pzh.35.1711799946700; Sat, 30 Mar 2024 04:59:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711799946; cv=pass; d=google.com; s=arc-20160816; b=hv5CrX1SUw8eL5JBRArtg3XzzZF21nTE8hUuEii+ek1vfI7rKaiVc1dthpWfnPzti3 +qawpGriqPqglku4XXSs6/GyhpDn1lOP/vLg6Sa436wmAu5pCnLAuq8W7homXgpMTslS MSxcGfwkZzisBTQ9NevsOZE6hLWhd02X5/bJZhyLZmTIvd7Ul0FiIHiUyM+UNPb7Yrih LHY4JJKvSEKAlWUF1rcSjZQhTdJlPpBsLklBZfbVGmad6SwzI4T1VGvv6PUSSTJxaQGW q9UczIb4kelAfnjnlpNKO3FfsHc4pzUDqPchWkHpLkZ9Z3mHbYUNZKu+HpBXMgZnJzHz P6wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=u77fpTTMNz3LT1eN+TJD4Ft6+92v6mNwqOjQGXSD8MM=; fh=ILXzPT3nbZXhvwVwwPDMnlxaRbCVxHwkAsH+01sTnAQ=; b=CIiL6xaMf9OYcOassK3v8LURY4mvYMa1EtCr/jhjz6X4cSLHtouio/zZicjxsKfiJN yU005kTDIHroQCkBwJkcVReO1/506Re8RqDdOxGymmB7EkQ3WSPFqM4o6wfnK4h/36Gs FHegiV2Kyb+N47mURhs/AunTh1l7L0gRLWPlEVE79bfoaCqP7joLjzG3AnlltRrDN8cm l530eFXF4D8I0kqtC6wt6VP8V/Sm8yH1vEafKrpVrr/8wcx/Sf2LNSlA7FAHc/I+kPjl b/2sm/0ci6MLl2b42kB2ZXg96zCiBt2Ax862TDhjCLg5l7SvsaZ8vFo/qYJg0bK+dcZ2 hURQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=nsru7nrL; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-125718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x20-20020a17090abc9400b002a07711dce6si5615145pjr.5.2024.03.30.04.59.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 04:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=nsru7nrL; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-125718-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me 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 61AA4283287 for ; Sat, 30 Mar 2024 11:59:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAA2E374C3; Sat, 30 Mar 2024 11:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="nsru7nrL" Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F35973717B for ; Sat, 30 Mar 2024 11:58:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711799940; cv=none; b=LD8LeQnxDmRji1hJBBTaBOdeurhPadR/NuTpCTPI38q7v8/cbHzqP0yQB1mNQ/7R3LPKd8p0r9cjU2Gfqt3AoZKd2KRlvv5gOThM0Y6VBtZ7hzJ3D28B+a7GbZrhe/OlO2eG6zGRJzQXYN8wgFTVXUm1RTXD39FACRP2WQx1Yo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711799940; c=relaxed/simple; bh=kiSdp5wgahJrdAgVwOmpWR86ieCs7wkic4oDURmLcZM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Zr2fv1yIH3F0EWAIsOLoX8mmAvsF00lw5+8eqlEWRT2Cx9YlOCWWLtnwglQf7Zy9bOkbMmTSFRmU/iTO6gL4LFuDBiZHbxYPNqEzcgz7y81LbhfsEFpIYeh4XNQjtxID69VICR1cYTMZ6ShEhMa2IuGSG/lZsXd14Rq/mEvTgi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=nsru7nrL; arc=none smtp.client-ip=185.70.40.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1711799930; x=1712059130; bh=u77fpTTMNz3LT1eN+TJD4Ft6+92v6mNwqOjQGXSD8MM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=nsru7nrLnxNc1XHi8AxKUUmTDdAi6XJlrMNKNQLwHlXZE97IcvE+2p/84IfZsnu9b 498n/qEWieuUy9NAVqnp8EvhI9F3Wkp6HG1uC4Hgyhym2ewbrUnEYlGVvANdtZRR7B 80p4JVOQ3AAkig0zyYJGx8KMOQ8DSVx+62ARyscil/GkHcgnvYuO3lXEGL+UNCPjR7 oQae3IoDbXnsCMt2r7XczLVC2UPrqctrj0orRRzisycqe9inEIzibkuIjnkQwevBFA +RS4p6KxweYrLY2MmB0HC4R/GYxTGVNf/vTyqzw3j7jX3F0e+l52vrvWTDgK8kmLRc eB7SikMKryy8A== Date: Sat, 30 Mar 2024 11:58:46 +0000 To: Wedson Almeida Filho , rust-for-linux@vger.kernel.org From: Benno Lossin Cc: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, Wedson Almeida Filho Subject: Re: [PATCH v2 2/5] rust: kernel: require `Send` for `Module` implementations Message-ID: In-Reply-To: <20240328195457.225001-3-wedsonaf@gmail.com> References: <20240328195457.225001-1-wedsonaf@gmail.com> <20240328195457.225001-3-wedsonaf@gmail.com> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 28.03.24 20:54, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho >=20 > The thread that calls the module initialisation code when a module is > loaded is not guaranteed [in fact, it is unlikely] to be the same one > that calls the module cleanup code on module unload, therefore, `Module` > implementations must be `Send` to account for them moving from one > thread to another implicitly. >=20 > Signed-off-by: Wedson Almeida Filho > --- > rust/kernel/lib.rs | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) As already said by Valentin, this should go to the stable tree. (and patch 1 should also go to stable 6.8.2, since IIRC the phy-driver is in that tree) Reviewed-by: Benno Lossin --=20 Cheers, Benno