engines/io_uring: pass back correct error value when interrupted
authorJens Axboe <axboe@kernel.dk>
Wed, 24 Aug 2022 18:01:39 +0000 (12:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Aug 2022 18:01:39 +0000 (12:01 -0600)
commit1816895b788e4437c8a5d1cdc00a59bc39f52ebf
tree440217e3bf7385ecded6a7223ef6a0ac59bf812f
parent995c45c08c7a362ae0fb2e54e2de27b555a757ab
engines/io_uring: pass back correct error value when interrupted

Running with an io_uring engine and using a USR1 signal to show
current status will end up terminating the job with:

fio: pid=91726, err=-4/file:ioengines.c:320, func=get_events, error=Unknown error -4
sfx: (groupid=0, jobs=1): err=-4 (file:ioengines.c:320, func=get_events, error=Unknown error -4): pid=91726: Wed Aug 24 11:59:51 2022

Ensure that the return value is set correctly based on the errno.

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