]> www.infradead.org Git - users/hch/block.git/commit
rust: block: introduce `kernel::block::mq` module
authorAndreas Hindborg <a.hindborg@samsung.com>
Tue, 11 Jun 2024 11:45:49 +0000 (13:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Jun 2024 13:45:04 +0000 (07:45 -0600)
commit3253aba3408aa4eb2e4e09365eede3e63ef7536b
tree180dd0614aa29c2a789717ded08f209b66368640
parentc2670cf789500304097cd115483cc70e1feb9472
rust: block: introduce `kernel::block::mq` module

Add initial abstractions for working with blk-mq.

This patch is a maintained, refactored subset of code originally published
by Wedson Almeida Filho <wedsonaf@gmail.com> [1].

[1] https://github.com/wedsonaf/linux/tree/f2cfd2fe0e2ca4e90994f96afe268bbd4382a891/rust/kernel/blk/mq.rs

Cc: Wedson Almeida Filho <wedsonaf@gmail.com>
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240611114551.228679-2-nmi@metaspace.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
rust/bindings/bindings_helper.h
rust/helpers.c
rust/kernel/block.rs [new file with mode: 0644]
rust/kernel/block/mq.rs [new file with mode: 0644]
rust/kernel/block/mq/gen_disk.rs [new file with mode: 0644]
rust/kernel/block/mq/operations.rs [new file with mode: 0644]
rust/kernel/block/mq/raw_writer.rs [new file with mode: 0644]
rust/kernel/block/mq/request.rs [new file with mode: 0644]
rust/kernel/block/mq/tag_set.rs [new file with mode: 0644]
rust/kernel/error.rs
rust/kernel/lib.rs