Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp912192pxv; Thu, 22 Jul 2021 15:57:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6lr5ScVdf/bfOPEibEh9+X33Ha2IxASK47VQaLhzA3sgtF87qCl2n1rAKP52UWqAWS5Xr X-Received: by 2002:a05:6638:3796:: with SMTP id w22mr1632021jal.34.1626994658304; Thu, 22 Jul 2021 15:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626994658; cv=none; d=google.com; s=arc-20160816; b=0CmWxyFNv6kChMR/MlGTkvtE7od+KFzBJX6Ed77ROCjH5Bv85XJEwTcNkFgbMUJTfk q2InAdiDSvobWDrnpjkQKGJKYsqos0WmbaY+PvBYLn265KJIpytcJ/fcN6V9IB4tlEYt E5QfMhMAw4DTXMvqBq2mPVfPjfaE2ydLdgvge9TCbVUIaxwfx14CPNLyOoV5bB9zmPB0 rJIewyT8gqX7pTsphT6jlCpyHS2NGKJ2My6x9NSr9jgLgB/0pbgIbkcsN1n01gW2QAcT jG7mDL/oldEyW/NnRE4mV7CnRHSJL/1ltcGTLg/33NFw6a3m35rUsC5Gu4p+FL/UGVKV OFbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IA1VbfCE0XhvLNla6VhKBZi1IOWHetcg7Adztz386vQ=; b=v65PR8jkcL6NJYs/8QXqkBswHwrUWdjIVqE8CDwlhfKoluhsoYVRpmFHXdSDyY8wfd ARYVgPDgBdqbMbNpyFglQHqVJKmmUbhmObQefG1hoZbWRgW5RJaRuJx1/Q75PXWCh7tC sVmVDK8oWSK6pf+owrfsoR5iBONfFxlmN92YiuC/KpooGRwfRf7U91+mOPW1S6FR7Brm YbWgb0HEoNkhzzMoYw4Xz5F4i8Mq/2vqdzPiNu4qd+U+HZ4D5+xq0uyE1ojtYds3mBTD zwKqhqxc1l6MrqjQC7OrWU8wzAqZTi4bTHQOJ3BqdWJ4brXw3HNXYs4UPFG0N3HDY9JB Rd7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tDQZihy5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si30848457iot.9.2021.07.22.15.57.25; Thu, 22 Jul 2021 15:57:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tDQZihy5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232224AbhGVWPb (ORCPT + 99 others); Thu, 22 Jul 2021 18:15:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbhGVWPb (ORCPT ); Thu, 22 Jul 2021 18:15:31 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F37AC06175F for ; Thu, 22 Jul 2021 15:56:04 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id f190so4214451wmf.4 for ; Thu, 22 Jul 2021 15:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IA1VbfCE0XhvLNla6VhKBZi1IOWHetcg7Adztz386vQ=; b=tDQZihy5zIWb38ficSC58M4Lv2GJc/Chu8kZMuPp+SIGEeS7WY4a3H9lDctfzdbv0I DvnLxNxUhbBKQwJSQ+InAfvZtF5mWCQM1VuzOWAFevhdYqEEruucp/Jugpx23+HSfkdW pN/AuljpBwVjsdDrI1+ufPl5bzLN82cVyTjbkK27gkxtVlpFP7Eh35o3C1DcMotWoEVV /rZMVCsZxx3XbSkYOEdHlJqYjMl/iNKNHEBqgOWSqsPqdJ29B3eHuiAyk0fylyRAFOaa J6x1hfnAtllmgKeR+9JKvZh3yLYN2E6JhBlsqqGEuQhWDXaBzykqjfDJ6DTn5w318m5u MKeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IA1VbfCE0XhvLNla6VhKBZi1IOWHetcg7Adztz386vQ=; b=eTGRQgQuE/07Y4vJznexrTWh8krtwhXkVzMEFGABPTWWq9YZyScitwKZ6te8JWriGS mTvwAUV0QXDvsok58aWRt47D6D+Z/us9EY18vFktMToQG5qKqzFUjSgsOFyIMO0VOjNr ixO/SwanGooGYZ/jld/+wNBPjTf3Ntpq2k3qhphf5X6E1Bl/HDa0fUjt7H4D6JhP1B6t nrgTU+5W4cE6aEuETdIWdELg/ZvRmbAbddYlD9FZdAI8U18Z7dYSg2Wa9XTxYmcoR0zA dwlIZ/em/ImQy3minNNKlANuyVHFHawZBueI4K8755WtLgTTTwEovBTlxLTmtJABWo2a ClJw== X-Gm-Message-State: AOAM533VNuobZUbDkPWnWE83Ron7TI2sZW37q7KnsFOUSvOefymqM3eV FDX8eMooJA7RKyRDB+pi3MAy X-Received: by 2002:a1c:7f54:: with SMTP id a81mr6144382wmd.107.1626994562893; Thu, 22 Jul 2021 15:56:02 -0700 (PDT) Received: from google.com ([2a00:79e0:d:209:7bb:435c:1528:220e]) by smtp.gmail.com with ESMTPSA id n18sm29939899wrt.89.2021.07.22.15.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 15:56:02 -0700 (PDT) Date: Thu, 22 Jul 2021 23:55:58 +0100 From: Wedson Almeida Filho To: Matthew Wilcox Cc: Finn Behrens , Greg Kroah-Hartman , Miguel Ojeda , Christoph Hellwig , Miguel Ojeda , Linus Torvalds , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel Subject: Re: [PATCH 00/17] Rust support Message-ID: References: <20210704202756.29107-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Matthew, On Thu, Jul 08, 2021 at 01:58:32AM +0100, Matthew Wilcox wrote: > Why are you so resistant to writing a real driver that deals with actual > hardware? I don't think it was so much resistance but rather a prioritisation thing. Have you by any chance seen the gpio driver I posted a couple of days ago? > A simple NVMe driver is less than a thousand lines of C. > I know the one in the kernel now is ridiculously complicated and has > been thoroughly messed up with abstractions to support NVMeoF instead > of having a separate driver, but it's really a simple interface at heart. The latest NVMe spec is 452 pages long, which seems to contradict your claim that it's simple. In any case, translating less than 1K lines of C shouldn't be too hard (after I've built the abstractions, of course). Would you mind sharing the simple driver you mention above? Thanks, -Wedson