Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp432675rwr; Thu, 4 May 2023 22:35:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4oHZsA5cJ9KZ+HhipoFjVG4pOukaPZCSrKVXCpufp5W1YWqVXYwHAm3XTlC00AH+bKNOEC X-Received: by 2002:a17:90a:ac0f:b0:246:75c8:f071 with SMTP id o15-20020a17090aac0f00b0024675c8f071mr411229pjq.3.1683264921866; Thu, 04 May 2023 22:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683264921; cv=none; d=google.com; s=arc-20160816; b=eupMyHNz79JR+h2AVr78H6TvE6BarDwmdADDofkcTCDfmMDzRTKz8YLC/AbF0IElzu RtXBHeOZa4xJuxsH11uCGmYFjZOiCDeUf6KowYW4qr4XGrVMSopKmo1GbqE0cEpYYqK6 Gy23q03q3ps2Y5ROiiqIGEl2fpbSUL4AHr3tEF0dzRGfor904bjbuPaXSy0lyZc4S1mx T5/2b9TKfN/P1qYt8mpOBvlgJK1R4gAI6moOrzOnxX1lV1bg1VwhNyAuF/Pdh8UKDofr pMKrJT56QeqEG7h+J0z9+5UR9W56kfe8KoSfzcF8JH1MPPVxjs5bxEBS3BVpsYwenDNu ZTxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=zs92ZqlzwMgAJ9tbeR2IGrgHgQIB/HuXhxphZxkLhww=; b=SGNMo4g3PY0pXsPZEdLrdut83UyEsvd/TKv+u4R25YUYHpibypXv7O5jLQeKqKKCPz l1wId3QE9VS9V7Igf0ALKIg04g+96MT4n1259Ty0164wd0eI1AVLCs/ZQpvWk9ctNYJc qfCpz6t+r9FeOREr9nf5ec6kh6Ac2extE9qBz9x7ff8bejj38v4v86Ll1xMnMh1tnOwr +RQbczQ3roDH81GDwlpmSdJs4CHPIm8zBRTRVvKCy5x5bJiteMjWDbNa+ABk1Ak3C108 kLtCkpHQES8mc1DHcy9KqOXz5aJte1o69Ebga/UdKOxpATRX6yFJRPyLnLlWLi3Y6v3C RiSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kfCOS8Zf; dkim=neutral (no key) header.i=@suse.de; 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=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a17090aeb0800b0024c1ddfa1bfsi5555038pjz.92.2023.05.04.22.35.06; Thu, 04 May 2023 22:35:21 -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=@suse.de header.s=susede2_rsa header.b=kfCOS8Zf; dkim=neutral (no key) header.i=@suse.de; 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=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230333AbjEEF2X (ORCPT + 99 others); Fri, 5 May 2023 01:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjEEF2W (ORCPT ); Fri, 5 May 2023 01:28:22 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C0E2A27E; Thu, 4 May 2023 22:28:21 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9530722C68; Fri, 5 May 2023 05:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683264499; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zs92ZqlzwMgAJ9tbeR2IGrgHgQIB/HuXhxphZxkLhww=; b=kfCOS8ZfTctZ10pt9ywYJujUk4m8iIAHnIuLnwZlRNzaIeifzU+quGssJWSZeDfbid73a1 7TjhxoRujgyIz01QoDTI9Zf8qMxbI04LAj1OFRWsZNSKN1uAEu53zPExWTiCjUPbxHVvvu LHPntCLIbWQoWXUMZxvBSn98JLbyeWs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683264499; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zs92ZqlzwMgAJ9tbeR2IGrgHgQIB/HuXhxphZxkLhww=; b=JauynF/hOwzkAN4LGpnWILY0Qx2wVOqsDLhchgieDu8mvLg+FyrqwYK15IDAIitM5M1EUO GkCWqYAUtoiNQjBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B3EFF13358; Fri, 5 May 2023 05:28:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QhaNKfKTVGTdaQAAMHmgww (envelope-from ); Fri, 05 May 2023 05:28:18 +0000 Message-ID: Date: Fri, 5 May 2023 07:28:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [RFC PATCH 00/11] Rust null block driver Content-Language: en-US To: Bart Van Assche , Andreas Hindborg Cc: Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , 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 References: <20230503090708.2524310-1-nmi@metaspace.dk> <87jzxot0jk.fsf@metaspace.dk> From: Hannes Reinecke In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 5/4/23 20:36, Bart Van Assche wrote: > On 5/4/23 11:15, Andreas Hindborg wrote: >> If it is still unclear to you why this effort was started, please do let >> me know and I shall try to clarify further :) > > It seems like I was too polite in my previous email. What I meant is that > rewriting code is useful if it provides a clear advantage to the users of > a driver. For null_blk, the users are kernel developers. The code that has > been posted is the start of a rewrite of the null_blk driver. The benefits > of this rewrite (making low-level memory errors less likely) do not > outweigh > the risks that this effort will introduce functional or performance > regressions. > I have to disagree here. While the null_blk driver in itself is certainly not _that_ useful, it does provide a good sounding board if all the design principles of the linux block layer can be adequately expressed in Rust. And by posting this driver you just proved that, and we all have a better understanding what would be needed to convert old or create new drivers. But I guess we'll have a longer discussion at LSF :-) Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman