Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp727497rwr; Fri, 5 May 2023 04:17:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kWgBR8RBWtWYUJFNAbUVLwdGVgIesvcusqLWpND5Tpvb08jJ9Lmb0jrFJpqxWzCnWk6kk X-Received: by 2002:a17:902:db08:b0:1a6:7b71:e64b with SMTP id m8-20020a170902db0800b001a67b71e64bmr8531127plx.15.1683285455636; Fri, 05 May 2023 04:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683285455; cv=none; d=google.com; s=arc-20160816; b=fkJYiNENweaH8Y/KzqkK8Fokr1P35/Y+tbTY2JQIVD6gle05mSiBCTtTTMAoU284yP 2BUvSI6JHvKqrpl06g+PcbydiSXVPWQ9Iyr47l5wFPmz7B8/MpuBnwiuUGMmXKck05Jy PQGI+JBeYM8+/AO/yliOxq+52B8lE+d4nouMVMPXn0hrb+0RMps5kiv2xs1e4xi3dHMV /YYzK/JsD3tB4sHKYJnM+c8Qtskrk9txwAqm8XIwC7XYNXIR0alvq8/56HCX0bRNhC/X uauQoY07/+lT8Oz/J8p7ELRG6gGkROo6u7ZreFJqPA/5MkDbia+KNe2ASfWHiSkANKnJ 3cNA== 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=QgaBKeEIlxAuYAP7cdMu1VdHHIFJCXTzQ7O6ZwAYCqE=; b=ab2dyJgDmoOLQLMYw8d4bOn/goEoeksSWDm0uDGhq41urwWY2FpN/o91iyNXhvOx6x 27C/rQ6vfB/kIikXmL++YuNVMWQERMeXDkrdOX4P1XzMp46qD9aD04dkqIGz2064QG6N ilKd1tUhiU1XszM6963Z+vJhWUjifRlj0kcSUBt3JfmTEMh/TqgG1BxKiHYENsV/Y1+X UvW/NImwJKDRfww1URwgHyea6q6LiuSBA7clulG7U41YcrltwzHi22OdxzqMunSDXqUo /ThuD+/Tg9koOL9izfIb8qfhjWy9h4R82LBfgWEZUkUjy8IuJ5a9UGWYsx/2oyMaNs16 8Qtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=s3pJv8ph; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6388c2000000b005139713f0ffsi1826103pgd.805.2023.05.05.04.17.20; Fri, 05 May 2023 04:17:35 -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=@gmail.com header.s=20221208 header.b=s3pJv8ph; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231574AbjEEKx5 (ORCPT + 99 others); Fri, 5 May 2023 06:53:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjEEKxz (ORCPT ); Fri, 5 May 2023 06:53:55 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0822C18DEF; Fri, 5 May 2023 03:53:53 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so13274126276.0; Fri, 05 May 2023 03:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683284032; x=1685876032; 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=QgaBKeEIlxAuYAP7cdMu1VdHHIFJCXTzQ7O6ZwAYCqE=; b=s3pJv8phz4dcw/96mqO39Pu3tK+YbrwOtXJVou33ycR8vmYxCXLQC/YEJvQ9zA3kMt Ekg9Nut3sqVhf3wQLuaeewXuP8M5PXc6cOjYB77jqgS0K27wq70pD5Nss5Lf69SZmEd/ HvHhjiU2TUv5M6r1dsUc/I08StmvCi74BoNwzxW1fQ8u5XvQ0vDBG21zfooscBMGU7au CfPCMsAUGAXuj3oX/cCCRTBzxMLg6TJwpr03asJ33tyRsVwCE4MdqS85wGZXc8fdh3MN vtQU5Eq8nh5YAq+wpHIk5TygGi/ep7R+y9Hm41l29oqNeLbtNA7ls41OYud0S+FmuCuz 488w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683284032; x=1685876032; 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=QgaBKeEIlxAuYAP7cdMu1VdHHIFJCXTzQ7O6ZwAYCqE=; b=KmJtspgCotmlIahDryS4fjvHSKmA2nijQnf4E/PQZKQwaeycRBLGWvVJQaOBkgdSAJ 4nnyQl067Y0+83AEQUQMz7abOU35iGhN62FVnI0JHY9NVkqekRpMq2ZE1mWUkCJHq2p1 o0h5yewplBLU4J54n+tSIMqiqYCaDqqDVl+/aNYSdopYXj2maRkZnkPAbke2OvBL/UOK Ew3pLAr6VYyEJa6UpjUV9xlOFvYdAsXH76MprB86rtJunkHsXCBnE7qNEoG2h1JByb43 JWNMiOhuwSmu4sD7l3HJ3nYNF754tI/PLL3mRrl0hfjJaelfaDFWaptDUa5mghjqr0tw Hq4w== X-Gm-Message-State: AC+VfDxSgGfLD81Dmxpkdip/Sej0S6q8DKqXP6nMKFYYIY/sraSKRvFT P1ToBe539Ku1p37xqG7exS3cqpstxu8lytOg3v8= X-Received: by 2002:a05:6902:729:b0:b9e:6c09:2d96 with SMTP id l9-20020a056902072900b00b9e6c092d96mr1409374ybt.12.1683284032199; Fri, 05 May 2023 03:53:52 -0700 (PDT) MIME-Version: 1.0 References: <20230503090708.2524310-1-nmi@metaspace.dk> <87jzxot0jk.fsf@metaspace.dk> <80ed2c0e-54db-777a-175b-1aa3ff776724@kernel.dk> In-Reply-To: <80ed2c0e-54db-777a-175b-1aa3ff776724@kernel.dk> From: Miguel Ojeda Date: Fri, 5 May 2023 12:53:41 +0200 Message-ID: Subject: Re: [RFC PATCH 00/11] Rust null block driver To: Jens Axboe Cc: Keith Busch , Bart Van Assche , Andreas Hindborg , Christoph Hellwig , Damien Le Moal , Hannes Reinecke , lsf-pc@lists.linux-foundation.org, rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , open list , gost.dev@samsung.com, Daniel Vetter Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, May 4, 2023 at 10:22=E2=80=AFPM Jens Axboe wrote: > > Right, but that doesn't really solve the problem when the rust bindings > get in the way of changes that you are currently making. Or if you break > them inadvertently. I do see benefits to that approach, but it's no > panacea. > > This seems to assume that time is plentiful and we can just add more to > our plate, which isn't always true. While I'd love to do more rust and > get more familiar with it, the time still has to be there for that. I'm > actually typing this on a laptop with a rust gpu driver :-) > > And this isn't just on me, there are other regular contributors and > reviewers that would need to be onboard with this. Indeed -- I didn't mean to imply it wouldn't be time consuming, only that it might be an alternative approach compared to having existing maintainers do it. Of course, it depends on the dynamics of the subsystem, how busy the subsystem is, whether there is good rapport, etc. > Each case is different though, different people and different schedules > and priorities. So while the above is promising, it's also just > annecdotal and doesn't necessarily apply to our case. Definitely, in the end subsystems know best if there is enough time available (from everybody) to pull it off. I only meant to say that the security angle is not the only benefit. For instance, like you said, the error handling, plus a bunch more that people usually enjoy: stricter typing, more information on signatures, sum types, pattern matching, privacy, closures, generics, etc. Cheers, Miguel