fio: don't retry engine search on failure
authorYigal Korman <ykorman@gmail.com>
Fri, 3 Jul 2020 12:38:40 +0000 (15:38 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Jul 2020 14:28:25 +0000 (08:28 -0600)
commit685e367e4d22a8c9aeb3e1e89e23d7df520b2804
treed1be37ae142cd828b9764803683138c84c0b4099
parent5144df064b2fc011615868e59083cfc1786bd073
fio: don't retry engine search on failure

ioengine_load will try to load a given engine and if it doesn't match
the current one (default is always psync), it will remove the current
one and try again.
This makes sense when the engine is loaded successfully, but if it's
not, we try to load it twice for no reason.

Fix by failing if we were unable to load requested engine and not
retrying.

Signed-off-by: Yigal Korman <ykorman@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c