selftests: ublk: add single sqe allocator helper
authorMing Lei <ming.lei@redhat.com>
Sat, 22 Mar 2025 09:32:10 +0000 (17:32 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Mar 2025 14:35:08 +0000 (08:35 -0600)
commitf2639ed11e256b957690e241bb04ec9912367d60
tree1614f4733a35b2aa15f12bc8958a2658f71adea5
parent723977cab4c0fdcf5ba08da9e30a6ad72efa2464
selftests: ublk: add single sqe allocator helper

Unify the sqe allocator helper, and we will use it for supporting
more cases, such as ublk stripe, in which variable sqe allocation
is required.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250322093218.431419-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/file_backed.c
tools/testing/selftests/ublk/kublk.c
tools/testing/selftests/ublk/kublk.h