projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a28ecd
)
Assign io_u->error directly in do_io_u_sync()
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 9 Mar 2010 20:44:55 +0000
(21:44 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 9 Mar 2010 20:44:55 +0000
(21:44 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
ioengines.c
patch
|
blob
|
blame
|
history
diff --git
a/ioengines.c
b/ioengines.c
index 155649b4007ff765f1277b96c6889286de205d72..366382e1fb2559e84600e788b1f8b03c9ce4af92 100644
(file)
--- 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;
}
io_u->error = EINVAL;
}
+ if (ret < 0)
+ io_u->error = errno;
+
return ret;
}
return ret;
}