X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fsg.c;h=8d086bffe6cad7431cd9243932538d735e133cfa;hp=d32007022aeb8388c6e0fcfef0d5f4ee50393acc;hb=95bcd815e5ce55d6cdd8eb83bda5ee411f37bdc9;hpb=6d663077379b40e1ec6e2321fe8a731087777d32 diff --git a/engines/sg.c b/engines/sg.c index d3200702..8d086bff 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -261,7 +261,12 @@ static int fio_sgio_queue(struct thread_data *td, struct io_u *io_u) io_u->error = EIO; } - return io_u->error; + if (io_u->error) { + td_verror(td, io_u->error); + return io_u->error; + } + + return 0; } static struct io_u *fio_sgio_event(struct thread_data *td, int event)