fio: move dynamic library handle to io_ops structure
authorEric Sandeen <sandeen@redhat.com>
Mon, 25 Jan 2021 19:18:31 +0000 (13:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 21:03:56 +0000 (14:03 -0700)
commitf6931a1dd35896433c8cc2e10de51372a2c496c4
tree7f22eb3e454fbe437a019572f5383286c29ac86b
parent42664db2e3ba38faae8ee4c8375f8958206a8c5d
fio: move dynamic library handle to io_ops structure

Keeping a dynamic engine's dlopen'd dlhandle on a thread structure doesn't
make sense; that thread may exit while others are still using the engine.

Move the dlhandle onto the ops structure itself.

We still only call dlopen for the first thead, which leaves a refcounting
issue which will be fixed in the next patch.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
init.c
ioengines.c
ioengines.h