Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1929679lql; Wed, 13 Mar 2024 12:08:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWNACC+Bp7t46IWwJ6N3lFAwmljNrvUJv1FM6BW3TSKDKwvC6X87UBA1EGOplSPsI2ekA0iE+VUBrOk/1+qF0TG204lUihzdXk3uUYpA== X-Google-Smtp-Source: AGHT+IFtpt8pmXB32sNC8GZ5/Vf5mw35kwK6AvIG28W9os5O1npuKOApC4HyEqXK4aUW36R/F08S X-Received: by 2002:a50:d00a:0:b0:567:56b4:b18e with SMTP id j10-20020a50d00a000000b0056756b4b18emr9117290edf.24.1710356916065; Wed, 13 Mar 2024 12:08:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710356916; cv=pass; d=google.com; s=arc-20160816; b=zKa653nPpLnWfgiuSwJ0Glk2NIsLFR4thm5L41rqGOzTcwxZ30mvK03jMEe8RHYl3A sirWRyw2AQmD+G8YcM5i7poJI0tZvkB8W6I2HYBQSuQoDsCJMiIxmV0QMksj0N5biiXA 8I9gLO4wNE2e9Xik+MyO8V155r/HtR02UoC/MZYppXzNCUBMrKE/V/tc2tpidQ8ydykF ALcCWfqTco0ioZbf/+O+q3fP9zXCa68vcMBiBoN7yss93uBddQRWerlp2LMI4WYkQGX3 tJQxjFoBCcUtZXsIHdFeTM7wMDMcH7Wm15ifoXE71bwW8hxaf1FqkT7JaQAvdWWPcZGL s9mA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature; bh=cu9TSzUxdZ0PpMpVusNNqoVTI9+ZtwDdSin31u7vPO8=; fh=J3SYq+axo9Ve2dyWP7uzgOGWEeKX/fgVGMMfizyV4cs=; b=oCOKuqzoVWdYwoeFsbm5MF9js9oD8168WST9Dw6Ls0+qfSLXkQSg/57Pwfdo+yeCWB gPWI2Z+BzZ/evuEgUnj4wyG6wFyvtiojXWjaq/6UAQloXZxhLvUkhWcc6WzeDMM4PiZm x8yAF8nSKpNMWImX33mYYepM22zf6kGOA83GHSE8vwD7mkh7gkrLfiinBNUhVzO7G1Hl Nw4pwpROF1VE2owCSG47RVDVJf66atBVlkc05ENbp/DuTmLyEDMe2efID96R5neJ/rGy fR8rL6yArjZ78E3l6NLm9dIID/LWdDXBcrBL2pHw/LtK9PELvo9/sEUU5D2/z1kOvJ+e aETg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HPLveOex; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t16-20020a056402525000b005688ec217ddsi329312edd.88.2024.03.13.12.08.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HPLveOex; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8FB111F23109 for ; Wed, 13 Mar 2024 19:08:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFED371726; Wed, 13 Mar 2024 18:22:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HPLveOex" Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60294487A7; Wed, 13 Mar 2024 18:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710354156; cv=none; b=eeSeRnD+4xPA92lLuxnw+h91Tz2IE45Y0rT09rklD1BeDdFTJ2gn3k3FaVj/h/jbsSn9zr6WVrUPUBwVucWactxu52npnUxHA0NgMbry6wnOh+ohTjD3sbr+pHNXXSfFCOIN+bQ3U+Gf0Xb0MopYE7Ig/GDJE/fG9mYm/4mW3Vg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710354156; c=relaxed/simple; bh=JFXJFFEtKDig4ScYbvL92KgFkW4nPQQEBbS+hPAVQx4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E/OLyPUjS2mc3Ooqlgd4shLd7pFDwakuKTRKwTHPUbCduSoHlO7mwIZPwm+Qo1yb9OQCWBfeK9jQV0b/VQjQte8lThwCoeLVI1AefzjW0zbfAjg1wtwWSYWHgv9LMIzVaEpqSDbicoXbvdqJCN6XC6ZRrG+DRQ0aEGVI/hzqDf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HPLveOex; arc=none smtp.client-ip=209.85.222.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-789ca2086b6so6728385a.3; Wed, 13 Mar 2024 11:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710354154; x=1710958954; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=cu9TSzUxdZ0PpMpVusNNqoVTI9+ZtwDdSin31u7vPO8=; b=HPLveOexLlCy14jPAePgDo7o4vpI9CjMlxsHkcZNVDw9/kebudjMke7I1R7vIm2J7H 7lrm7rC3CcDodvo6eg+oOv+jp5Rk1GOwHIzYA99J1LVdGr/0tUHcQq+Lfx+yRiafoKkD 9B+XyKJD1Lt6Pth1o3SLHZehfDXmecsOYRdaX+WWbFHtFWkmeTDLIh0ytlLN/hwBO/hH 5u/f8OGpnUgpZw59NYH9rfrdhUFJQ7XyUfGSgKeJgvu+WQ/46tAP2llso5ieLUsSbPjA zbUkzCo0L77Ic34rZIC82pczWXoUmj6Q9uEYz/UqXwHz/UQEBTVolCtDB37wgfZMYMea nNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710354154; x=1710958954; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cu9TSzUxdZ0PpMpVusNNqoVTI9+ZtwDdSin31u7vPO8=; b=hk/JbtFFoexZF39Cd6J4lasJsuj/HW0ayIp/K74vFzgYNzvJlggWrl7nWrgQq7stBY a+OU0+1+/YHrYHGjp2wATTFpRmwc5LIxl1oJsUwmqjrFUZGY2Ze5koIoPjoEIJkLzjNe zDZZ6IXbnDFMOYB3uEZJZhLAZzP22xGlNhPdyGhPHRUGSeG+A035ehcZmAETLyEFzmc8 biBslAqOMpZRUUY17TEOzypw/VRaKIk1bEQ5zYVaDPucg+zDlA98kPxuaYsnRN83iGin mho+FEBbITXOQNChBoKweRffzFnj6B1axwU/V4ugmSRA0ghSCgSDojw2j4lhwHt6ll6B NNpQ== X-Forwarded-Encrypted: i=1; AJvYcCUQBUazph1LcVSGeQud3Av0BAIBD7mC7PGR4OKSi3YLFYpv8X77+FrcHKSyjweSqSy/bqMxQVSAmV+A3WkOTYGusQJsCh9HLP2Z6h4NQfEw/6dCGGTXJH3MO9+kvJQbHo8QnC8bdb+bUmgwYpj0755qqV1mgzaC96fSx/5d8HREpm8FjQL5ZJAPSQ== X-Gm-Message-State: AOJu0YyW9G39sQwA8EEBEBIGSP6pyCMEZNlBFl0+K20fCXdnc5I/vG61 zUbNOFaGdABXrPFBk9bDbLImok/XNk17updq009I9a80S/9VD1QA X-Received: by 2002:a0c:e902:0:b0:690:e990:c183 with SMTP id a2-20020a0ce902000000b00690e990c183mr668580qvo.10.1710354154306; Wed, 13 Mar 2024 11:22:34 -0700 (PDT) Received: from fauth2-smtp.messagingengine.com (fauth2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id e18-20020a0caa52000000b00690d2942caasm3343733qvb.20.2024.03.13.11.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:22:33 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id AD314120006A; Wed, 13 Mar 2024 14:22:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 13 Mar 2024 14:22:32 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeehgdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepuehoqhhu nhcuhfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpeffhfdtkeevveelheduieehveetffduveduleeffedvvdekudekheehtdeu veeihfenucffohhmrghinhephhgvrhgsshhuthhtvghrrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhp rghuthhhphgvrhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsg hoqhhunhdrfhgvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Mar 2024 14:22:30 -0400 (EDT) Date: Wed, 13 Mar 2024 11:22:27 -0700 From: Boqun Feng To: Bart Van Assche Cc: Andreas Hindborg , Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Hannes Reinecke , "linux-block@vger.kernel.org" , Andreas Hindborg , Niklas Cassel , Greg KH , Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Alice Ryhl , Chaitanya Kulkarni , Luis Chamberlain , Yexuan Yang <1182282462@bupt.edu.cn>, Sergio =?iso-8859-1?Q?Gonz=E1lez?= Collado , Joel Granados , "Pankaj Raghav (Samsung)" , Daniel Gomez , open list , "rust-for-linux@vger.kernel.org" , "lsf-pc@lists.linux-foundation.org" , "gost.dev@samsung.com" Subject: Re: [RFC PATCH 0/5] Rust block device driver API and null block driver Message-ID: References: <20240313110515.70088-1-nmi@metaspace.dk> <855a006d-5afc-4f70-90a9-ec94c0414d4f@acm.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <855a006d-5afc-4f70-90a9-ec94c0414d4f@acm.org> On Wed, Mar 13, 2024 at 11:02:23AM -0700, Bart Van Assche wrote: > On 3/13/24 04:05, Andreas Hindborg wrote: > > This is the second version of the Rust block device driver API and the Rust null > > block driver. The context and motivation can be seen in cover letter of the RFC > > v1 [1]. If more context is required, a talk about this effort was recorded at > > LPC [2]. I hope to be able to discuss this series at LSF this year [3]. > > Memory safety may land in C++ in the near future (see also > https://herbsutter.com/2024/03/). If memory-safe C++ or memory-safe C > would be adopted in the kernel, it would allow writing memory-safe > drivers without having to add complicated bindings between existing C I honestly doubt it, memory-safe is not free, basically you will still want unsafe part for the performance reason (or interacting with hardware), and provide a safe API for driver development. I don't think that part will be gone with a memory-safe C++. So the complication still exists. But I'm happy to be proved wrong ;-) Regards, Boqun > code and new Rust code. Please do not take this as personal criticism - > I appreciate the effort that has been spent on coming up with great > Rust bindings for the Linux kernel block layer. > > Thanks, > > Bart. >