engines/io_uring: add multi range dsm support
authorAnkit Kumar <ankit.kumar@samsung.com>
Thu, 15 Feb 2024 15:18:12 +0000 (20:48 +0530)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Feb 2024 15:38:39 +0000 (08:38 -0700)
commit5d4ee0de9d6afaa74c7c15c3d4f210a06d4e2139
treebd24902866d50a89588ad1b9e164a3777910d874
parent0d610785a8072eba146dd05f2928a1a89da49bd5
engines/io_uring: add multi range dsm support

Update the io_uring_cmd ioengine to support multiple ranges for trim.
This includes allocating buffer for multiple ranges, and changes to
the nvme trim helper functions.
Add an example on how to use multi range trim.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Link: https://lore.kernel.org/r/20240215151812.138370-4-ankit.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
engines/nvme.c
engines/nvme.h
examples/uring-cmd-trim-multi-range.fio [new file with mode: 0644]