commit | cb849a795d2bfd99efdd66f5a3e475c9fb3edd86 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 09 21:44:55 2010 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 09 21:44:55 2010 +0100 |
tree | 29217d22347b55a9ee9a056aa6f29fed13e5f108 | |
parent | 0a28ecda80a78c9d70ae38ced58f3a2fa9c9529d [diff] |
Assign io_u->error directly in do_io_u_sync() Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c index 155649b..366382e 100644 --- a/ioengines.c +++ b/ioengines.c
@@ -465,5 +465,8 @@ io_u->error = EINVAL; } + if (ret < 0) + io_u->error = errno; + return ret; }