From: Jens Axboe Date: Tue, 9 Mar 2010 20:44:55 +0000 (+0100) Subject: Assign io_u->error directly in do_io_u_sync() X-Git-Tag: fio-1.38~21 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cb849a795d2bfd99efdd66f5a3e475c9fb3edd86 Assign io_u->error directly in do_io_u_sync() Signed-off-by: Jens Axboe --- diff --git a/ioengines.c b/ioengines.c index 155649b4..366382e1 100644 --- a/ioengines.c +++ b/ioengines.c @@ -465,5 +465,8 @@ int do_io_u_sync(struct thread_data *td, struct io_u *io_u) io_u->error = EINVAL; } + if (ret < 0) + io_u->error = errno; + return ret; }