public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Rust block device driver API and null block driver
@ 2024-06-01  8:18 Andreas Hindborg
  2024-06-01  8:18 ` [PATCH v3 1/3] rust: block: introduce `kernel::block::mq` module Andreas Hindborg
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Andreas Hindborg @ 2024-06-01  8:18 UTC (permalink / raw)
  To: Jens Axboe, Christoph Hellwig, Keith Busch, Damien Le Moal,
	Bart Van Assche, Hannes Reinecke, Ming Lei,
	linux-block@vger.kernel.org
  Cc: Andreas Hindborg, Greg KH, Matthew Wilcox, Miguel Ojeda,
	Alex Gaynor, Wedson Almeida Filho, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Alice Ryhl,
	Chaitanya Kulkarni, Luis Chamberlain, Yexuan Yang,
	Sergio González Collado, Joel Granados,
	Pankaj Raghav (Samsung), Daniel Gomez, Niklas Cassel,
	Philipp Stanner, Conor Dooley, Johannes Thumshirn,
	Matias Bjørling, open list, rust-for-linux@vger.kernel.org,
	lsf-pc@lists.linux-foundation.org, gost.dev@samsung.com

From: Andreas Hindborg <a.hindborg@samsung.com>

Hi!

Rebased on v6.10-rc1 and implemented a ton of improvements suggested by Benno. v2 is here [2]

Changes from v2:

 - implement `atomic_relaxed_op_return` in terms of `AtomicU64::fetch_update`.
 - update `Request` docs with state tracking info
 - link all types in docs
 - add invariant to `TagSet`
 - do not unwrap pin in `TagSet::drop`
 - remove references to `try_ffi_init` from comments
 - numerous typo fixes
 - code formatting fixes
 - remove remote completion logic
 - move `gen_disk::try_new` into `GenDisk` impl
 - make `GenDiskState` sealed
 - add a default state for `GenDisk`
 - conditionally call `del_gendisk` on `GenDisk` drop
 - move `add_disk` into `init` functon in rnull module
 - improve error message in request completion assertion
 - rebased on v6.10-rc1

Best regards,
Andreas Hindborg


Link: https://lore.kernel.org/all/20240521140323.2960069-1-nmi@metaspace.dk/ [1]


Andreas Hindborg (3):
  rust: block: introduce `kernel::block::mq` module
  rust: block: add rnull, Rust null_blk implementation
  MAINTAINERS: add entry for Rust block device driver API

 MAINTAINERS                        |  14 ++
 drivers/block/Kconfig              |   9 ++
 drivers/block/Makefile             |   3 +
 drivers/block/rnull.rs             |  78 +++++++++
 rust/bindings/bindings_helper.h    |   2 +
 rust/helpers.c                     |  16 ++
 rust/kernel/block.rs               |   5 +
 rust/kernel/block/mq.rs            |  97 ++++++++++++
 rust/kernel/block/mq/gen_disk.rs   | 222 ++++++++++++++++++++++++++
 rust/kernel/block/mq/operations.rs | 233 +++++++++++++++++++++++++++
 rust/kernel/block/mq/raw_writer.rs |  55 +++++++
 rust/kernel/block/mq/request.rs    | 246 +++++++++++++++++++++++++++++
 rust/kernel/block/mq/tag_set.rs    |  97 ++++++++++++
 rust/kernel/error.rs               |   6 +
 rust/kernel/lib.rs                 |   2 +
 15 files changed, 1085 insertions(+)
 create mode 100644 drivers/block/rnull.rs
 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


base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
-- 
2.45.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-06-01 12:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-01  8:18 [PATCH v3 0/3] Rust block device driver API and null block driver Andreas Hindborg
2024-06-01  8:18 ` [PATCH v3 1/3] rust: block: introduce `kernel::block::mq` module Andreas Hindborg
2024-06-01  9:43   ` Benno Lossin
2024-06-01  9:59     ` Miguel Ojeda
2024-06-01 11:11     ` Andreas Hindborg
2024-06-01 12:05       ` Benno Lossin
2024-06-01 12:51         ` Andreas Hindborg
2024-06-01  8:18 ` [PATCH v3 2/3] rust: block: add rnull, Rust null_blk implementation Andreas Hindborg
2024-06-01  9:15   ` Benno Lossin
2024-06-01 11:15     ` Andreas Hindborg
2024-06-01  8:18 ` [PATCH v3 3/3] MAINTAINERS: add entry for Rust block device driver API Andreas Hindborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox