engines/libblkio: Share a single blkio instance among threads in same process
authorAlberto Faria <afaria@redhat.com>
Thu, 1 Dec 2022 22:08:03 +0000 (22:08 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Fri, 2 Dec 2022 21:24:03 +0000 (16:24 -0500)
commit3afc2d8ac30c58372a1b7ccabaea0f3eae4ddaba
treed1839c6e34693e4efcdc5c04ada97933bd25e363
parent13fffdfbe3de66c368fe9d6bfaf61950f7f08857
engines/libblkio: Share a single blkio instance among threads in same process

fio groups all subjobs that set option 'thread' into a single process.
Have them all share a single `struct blkio` instance, with one `struct
blkioq` per thread/subjob. This allows benchmarking multi-queue setups.

Note that `struct blkio` instances cannot be shared across different
processes.

Signed-off-by: Alberto Faria <afaria@redhat.com>
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
HOWTO.rst
engines/libblkio.c
examples/libblkio-io_uring.fio
examples/libblkio-virtio-blk-vfio-pci.fio
fio.1