t/io_uring: allow multiple IO threads
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Aug 2021 22:54:23 +0000 (16:54 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Aug 2021 22:57:19 +0000 (16:57 -0600)
commit543196617ce45b6a04fb039a3b9c6d06c9b58309
tree47e3e2d8eb075303d37ef99369cb38c4cf10478f
parentfaff87e6f0da68853908652a95f0ec40dd12869d
t/io_uring: allow multiple IO threads

If you do:

t/io_uring -n2 /dev/dev1 /dev/dev2

then t/io_uring will create two IO threads, and each one will get
a file/device assigned. In the above example, thread 1 will run
on dev1, thread 2 on dev2.

Note that for now, you'll need at least as many files as threads.
Adding support for adding the same file set over the specified
threads (if we have less files than threads) is left as an
exercise for the reader. You know where to send the patches.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c