t/io_uring: allow flexible IO threads assignment
authorAndrzej Jakowski <andrzej.jakowski@intel.com>
Wed, 8 Sep 2021 18:35:00 +0000 (11:35 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Sep 2021 19:14:26 +0000 (13:14 -0600)
commitd79ff8c9e168e0537338c2efeae3c6ec37ce846c
tree01b9e9e087614fa83ed31a6cae3f001f9bbe492b
parentd83ac9d3d30d5f5dc6d0e425e4ba945a772839f6
t/io_uring: allow flexible IO threads assignment

This patch allows to flexibly assign IO threads to fileset. When
you specify:

t/io_uring -n 5 /dev/dev1 dev/dev2

First file/device will get 3 IO threads and second file/device
remaining 2 IO threads. When there is more files then IO threads,
IO thread may get assigned multiple files/devices.

Signed-off-by: Andrzej Jakowski <andrzej.jakowski@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c