On 11.06.24 13:45, Andreas Hindborg wrote: > From: Andreas Hindborg <a.hindborg@xxxxxxxxxxx> > > Add initial abstractions for working with blk-mq. > > This patch is a maintained, refactored subset of code originally published > by Wedson Almeida Filho <wedsonaf@xxxxxxxxx> [1]. > > [1] https://github.com/wedsonaf/linux/tree/f2cfd2fe0e2ca4e90994f96afe268bbd4382a891/rust/kernel/blk/mq.rs > > Cc: Wedson Almeida Filho <wedsonaf@xxxxxxxxx> > Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxxx> > --- > 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 <benno.lossin@xxxxxxxxx> --- Cheers, Benno