Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2494008rdb; Fri, 8 Dec 2023 09:38:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9d2Z9GX96+8BKseWO6TsmCx9YOi4M+dgydB/t6a57crXY+7OoW8UlYWKJHtHNjEdtbEs0 X-Received: by 2002:a17:90a:fd87:b0:286:6cc1:781d with SMTP id cx7-20020a17090afd8700b002866cc1781dmr397225pjb.96.1702057094685; Fri, 08 Dec 2023 09:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702057094; cv=none; d=google.com; s=arc-20160816; b=GqrtLPMbc7MELPHSODqO051oghE29p8UsSpkrTbN8TO4pftCO8Q0w1P//Zau9+ReU1 +twHC1t62/IsWCLp38WDrS6n2+JH/uq3bASi0R45JE0vMqCxblYNiWL9NcI9PFNgO3YF vF+iIAe3fOQIyp8g/TwHUFMdootobHTD09iVoHfERIqEO9ER/uFji6MORyv1Ia+h1jhR 84UKlY2oYDpJzosGOkIR2paYEV3IXAoeHHySN0YtrOzjbL2EVERzGGpLlVNjkFjlJCea CN4Wrcq2o7y0bk42GNMty/JEczqOZHOoCPjEEFFb0WhsKKRE585SsAvJmhpAXZMibR8P 613Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=r0Z0YmFOw5rXYpuwdmLPjflIJNNlQ47AX9g0hYDvR5o=; fh=I6+WpN5DaP9b6lPvXfT2CeQSg5LxyI5mxrqY6HvweX4=; b=zkSdBh/+gcck47GRxAq9ox4EG82p7bJGdzu+xwfl1hsJw/a+5O+9rDUuwALqshy2wi +d681aMDfLmbKrA1T5JG23Fi0zVHcHmtwVsyrnNpqjxlPr3SXLHmXlTRT9omgqstGfrC WCmJKObQ6mEEdYYothX45yDlxLRtsIM15vzl0/tPpvD1e8H6LgSrBOfoBKXcrCQxAy3p aQo6YbztGyDsDl9Oak8LbF3vCNb9VqyEnQjuSzRRsdbOMsN8RWTpDgRYwVMZ05GWzKHI oQwbujYP4tLJC+IZyJnJovKYrppPfDhez8SEHNj73HkQwPj4Lm0xMahd9aYEnS7CB8Sb WVBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kj4boYgQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ie3-20020a17090b400300b002850d5f8ab3si3256869pjb.174.2023.12.08.09.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Kj4boYgQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 885A481C0CB8; Fri, 8 Dec 2023 09:38:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574139AbjLHRh5 (ORCPT + 99 others); Fri, 8 Dec 2023 12:37:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233514AbjLHRhz (ORCPT ); Fri, 8 Dec 2023 12:37:55 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BBBF85; Fri, 8 Dec 2023 09:38:02 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5c8c26cf056so21355047b3.1; Fri, 08 Dec 2023 09:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702057081; x=1702661881; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=r0Z0YmFOw5rXYpuwdmLPjflIJNNlQ47AX9g0hYDvR5o=; b=Kj4boYgQtJLzej0yLJ+7OV6v6OYz3VZ/FbsL1ujauMdyAJgHtVFxiStLDdYUcGe2Zm dfoIjpPkwTU7IWLe8nyCO5XLA3IYa0l+yHSq4vpwD2msyRTXMdbN8tQrpiZLs5KMGW+4 +VFk/K1qUn6GQ+KIqukK8k5w168Itux9sQ3rcp2ZPkplCH8KungUvcl0ERAg37tQfvSC fOhsxMJKhQeOZfoQgTp7w6spy+vJwPq0Wmxm0luT8wrazWd6D0U/8gZjTG3HU26IkjiJ cWz79nQjiYwBxGvCYGoHUi9a9HqKSsekooqkNzSShYwwA5fbIWk0gw3QhfbV/w9holZt TITQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702057081; x=1702661881; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r0Z0YmFOw5rXYpuwdmLPjflIJNNlQ47AX9g0hYDvR5o=; b=vmwAUxi5ybJ7G3CB1vH9ufiHOrPVT+QWSvLJpRDvLEEigcUC4QwSVvn06xPCH3ax5d SI9qbxU3UnNjFQhI3UOvfX17b2Fejm/kGCbQqkjGbT3TY0dRY9xnS5HtdPNdw8yvW1v6 g3XfnVHOKR+11fSBO90jHFY64qDbLZfmrc8OEXsz9DkiJO7TpgR8MGXQHwrlZUHzvk3C ZjSt15mGT9S6OMGaWscQmNBnrVxSM0s16V1/QT96vp4tXSwQseiZk/siTl/SKK3OWAMl 47izNz79vSsn4DDeLojIQ59fHjvkxY160/kv8CIKeb44zlKGneExfYXGnIVmDwNi5k8b CeiA== X-Gm-Message-State: AOJu0Yw/+q5+kL7IjqjyBoX9F5Pqxx/cRKJ3sdEEoBQ72VxUQCSY3r9i B4A/wwhTZ/uj1fIRRdgoolGP81QcVgIoH6ZmAtM= X-Received: by 2002:a0d:ca05:0:b0:5d7:1941:2c0d with SMTP id m5-20020a0dca05000000b005d719412c0dmr353319ywd.58.1702057081504; Fri, 08 Dec 2023 09:38:01 -0800 (PST) MIME-Version: 1.0 References: <20231129-alice-file-v1-0-f81afe8c7261@google.com> <20231129-alice-file-v1-5-f81afe8c7261@google.com> <20231129-etappen-knapp-08e2e3af539f@brauner> <20231129164815.GI23596@noisy.programming.kicks-ass.net> <20231130-wohle-einfuhr-1708e9c3e596@brauner> In-Reply-To: From: Miguel Ojeda Date: Fri, 8 Dec 2023 18:37:50 +0100 Message-ID: Subject: Re: [PATCH 5/7] rust: file: add `Kuid` wrapper To: Nick Desaulniers Cc: comex , Christian Brauner , Peter Zijlstra , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alexander Viro , Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Dan Williams , Kees Cook , Matthew Wilcox , Thomas Gleixner , Daniel Xu , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 09:38:11 -0800 (PST) On Fri, Dec 8, 2023 at 6:09=E2=80=AFPM Nick Desaulniers wrote: > > On paper, nothing comes to mind. No promises though. Thanks Nick -- that is useful nevertheless. > From a build system perspective, I'd rather just point users towards > LTO if they have this concern. We support full and thin lto. This > proposal would add a third variant for just rust drivers. Each > variation on LTO has a maintenance cost and each have had their own > distinct fun bugs in the past. Not sure an additional variant is > worth the maintenance cost, even if it's technically feasible. I was thinking it would be something always done for Rust object files: under a normal "no LTO" build, the Rust object files would always get the cross-language inlining done and therefore no extra dimension in the matrix. Would that help? I think it is worth at least considering, given there is also a non-trivial amount of performance to gain if we always do it, e.g. Andreas wanted it for non-LTO kernel for this reason. Cheers, Miguel