Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp788207lqs; Fri, 14 Jun 2024 05:58:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9jw4f6pMHUedvDD6ZyN33h1C0p9lyEesqPxwXGLUD3Aba783yGSTXNTJ47UT1mqZHW5Ux25fiz3FxDynos9gdOT35c9P2rvwOJRUA3Q== X-Google-Smtp-Source: AGHT+IFTROGKA8/MKZ1mY1CxZ1+XOJmXCF6aKEzlwqAvUuqNWTTeiW71E7rC1Fs1zYouEmnqIBVk X-Received: by 2002:a17:90a:fe85:b0:2c3:2df:ea36 with SMTP id 98e67ed59e1d1-2c4dbd37dfcmr2537255a91.48.1718369934767; Fri, 14 Jun 2024 05:58:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718369934; cv=pass; d=google.com; s=arc-20160816; b=gKX1zHSf+qdBfvcNLPXmEGqUVE9v9Bu3kqxhpQaSGV08S0WiGB1wO9WnfS+bZciEe+ bptkqexTZE89hrR/PtTJF1YiLfM7f89iOJBXtWLhA5DtC0SjxDDvvohHL17GlapcK2wt wGAsLsBWshm6RND8AvVD8WyHORW8HS5EkMVIph42BybumhbAuNG4xXnuwrGm64iDaHYg N0W23+jb22j29E3z+Dv7E5lg2qJYnZ+wS4BSLnk84xg32uVNXJ4JLNdNIVabUWVxeQV6 WQc1gy6PmyqvvK+VOPyLVwbLNGUkkQp0E3O/wHlgh0mT9yNuTYNdEnYGjhxJKNtUBTO4 YPOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=/P4Ipyi5V6XC49ifR6u6XzXB7A6kcDydd2cvy9jsBTs=; fh=Ropx4s6wGi71KWopm7+nrW8HGH4GqwqEx7lFp93ocSE=; b=fkmH8JvoxfW7/Zwn/c1s/7q5t4T6UpkvIW2znGQrfpJD71XBqzs5HXvIBXU0rjOlvt hCYylnMmg8TGKbIKdYwjgxoWfLZnlFaMdM3BTv5aopxA8Bc7F+Ti9HU+JNireNDTFEFg gZcBOgtz2jqPYDF4mw4DCZPkeYB1CU4RsxFtPkEI+C0EsG1CbNDPIAWpOpunpFvjUyNY gFPq7D4ZMAaiJ/1K5as5kpV4ce0RXqgesyb/aabxIIAyZOISmnbGFrDVHsyfO4DGKSAx 78jXvSc73fSQEWMdq1f732H8Y2zkQpZiR0KEaAqczT//HUxWdSte72iTG11ijs2Qu3tV 0SjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b="fo0v88/d"; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-214913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a75f39cbsi5714189a91.47.2024.06.14.05.58.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 05:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b="fo0v88/d"; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-214913-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214913-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ABC06B28814 for ; Fri, 14 Jun 2024 12:44:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70030199389; Fri, 14 Jun 2024 12:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="fo0v88/d" Received: from mail-40137.protonmail.ch (mail-40137.protonmail.ch [185.70.40.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8395D19AD81 for ; Fri, 14 Jun 2024 12:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.137 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718368981; cv=none; b=B2tHwRPgMEvsK5tTu8l81nyX25neQSWF2oX+OwVTaXwWRqNZmqw6hhtWDQyU+PKMrPXSc8kj63oT8/V6V4Sz6XX7TkkSZV1hSyThJbgFy7lLl3B2VzAb6pFugFqPwK+5NwWsvrreOR+GfEpyxvx5NAae3oUnrfP3hb3uP9MXj10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718368981; c=relaxed/simple; bh=R35MwdhkDzAwQQIkOBIkyiAwfm1duRkanzr02CqKYFs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lRF2VrbVnfza8ukAQpbzlWeRShTO4uEG+tlFgnsyMevaTNkRyiEsHkEwfjPCyu7uTWFY01fPycM7XEhsdEpz3kbyron79KQrPMdnqLpkZbio0xhKMo5Mb55JpyT5Ino9RNctRscH29rpIvFmL+XLHFmx12RU2ryWuVno8OLeNbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=fo0v88/d; arc=none smtp.client-ip=185.70.40.137 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1718368971; x=1718628171; bh=/P4Ipyi5V6XC49ifR6u6XzXB7A6kcDydd2cvy9jsBTs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=fo0v88/dWr1ArYRzF6gRPHiUh6wNMMwjTG545+fQA16wqy3rMw0m3Ji9M1PSyZjdN DY3/CrNeJggZTkIva5imy27cnX4KCUK7nKumSxnF+LpRkjICj4WIuLPvdnFj56wWfv yjFw++7rnh2CJN/xYBZkjMoCe+o9HW9Twuhc2rRx/XO4mJ5AMhM70qe0AUzC42KHDT AX+UsBmsEtzoV9+7uv0/gu3ixqrxNThB8YlyZmSCAOTBeEqMhZOhFDFJg7sPxwcETI SqcnT8LJMRaZXtQzW1uVJoGDcjQFRJKt3ZVxB75MiyZerO4A2IONn3GZtDFmoXYjuv 1wTo+R5/J1AfA== Date: Fri, 14 Jun 2024 12:42:45 +0000 To: Andreas Hindborg , Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Bart Van Assche , Hannes Reinecke , Ming Lei , "linux-block@vger.kernel.org" From: Benno Lossin Cc: Andreas Hindborg , Wedson Almeida Filho , Greg KH , Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Chaitanya Kulkarni , Luis Chamberlain , Yexuan Yang <1182282462@bupt.edu.cn>, =?utf-8?Q?Sergio_Gonz=C3=A1lez_Collado?= , Joel Granados , "Pankaj Raghav (Samsung)" , Daniel Gomez , Niklas Cassel , Philipp Stanner , Conor Dooley , Johannes Thumshirn , =?utf-8?Q?Matias_Bj=C3=B8rling?= , open list , "rust-for-linux@vger.kernel.org" , "lsf-pc@lists.linux-foundation.org" , "gost.dev@samsung.com" Subject: Re: [PATCH v6 1/3] rust: block: introduce `kernel::block::mq` module Message-ID: In-Reply-To: <20240611114551.228679-2-nmi@metaspace.dk> References: <20240611114551.228679-1-nmi@metaspace.dk> <20240611114551.228679-2-nmi@metaspace.dk> Feedback-ID: 71780778:user:proton X-Pm-Message-ID: 9d41ef20cbfc7aaec43b1f1474cb4170cff5c190 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=utf-8 Content-Transfer-Encoding: quoted-printable On 11.06.24 13:45, Andreas Hindborg wrote: > From: Andreas Hindborg >=20 > Add initial abstractions for working with blk-mq. >=20 > This patch is a maintained, refactored subset of code originally publishe= d > by Wedson Almeida Filho [1]. >=20 > [1] https://github.com/wedsonaf/linux/tree/f2cfd2fe0e2ca4e90994f96afe268b= bd4382a891/rust/kernel/blk/mq.rs >=20 > Cc: Wedson Almeida Filho > Signed-off-by: Andreas Hindborg > --- > rust/bindings/bindings_helper.h | 3 + > rust/helpers.c | 16 ++ > rust/kernel/block.rs | 5 + > rust/kernel/block/mq.rs | 98 +++++++++++ > rust/kernel/block/mq/gen_disk.rs | 215 ++++++++++++++++++++++++ > rust/kernel/block/mq/operations.rs | 245 ++++++++++++++++++++++++++++ > rust/kernel/block/mq/raw_writer.rs | 55 +++++++ > rust/kernel/block/mq/request.rs | 253 +++++++++++++++++++++++++++++ > rust/kernel/block/mq/tag_set.rs | 86 ++++++++++ > rust/kernel/error.rs | 6 + > rust/kernel/lib.rs | 2 + > 11 files changed, 984 insertions(+) > create mode 100644 rust/kernel/block.rs > create mode 100644 rust/kernel/block/mq.rs > create mode 100644 rust/kernel/block/mq/gen_disk.rs > create mode 100644 rust/kernel/block/mq/operations.rs > create mode 100644 rust/kernel/block/mq/raw_writer.rs > create mode 100644 rust/kernel/block/mq/request.rs > create mode 100644 rust/kernel/block/mq/tag_set.rs Reviewed-by: Benno Lossin --- Cheers, Benno