projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update close file handler to return potential error
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index faa1c5e36a8d84ac558d6867a7e796ec5a71d8fe..0ffae29c9f035a2d387ad00b0ae7d882ac0515b3 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-328,8
+328,12
@@
void put_io_u(struct thread_data *td, struct io_u *io_u)
assert((io_u->flags & IO_U_F_FREE) == 0);
io_u->flags |= IO_U_F_FREE;
assert((io_u->flags & IO_U_F_FREE) == 0);
io_u->flags |= IO_U_F_FREE;
- if (io_u->file)
- put_file(td, io_u->file);
+ if (io_u->file) {
+ int ret = put_file(td, io_u->file);
+
+ if (ret)
+ td_verror(td, ret, "file close");
+ }
io_u->file = NULL;
list_del(&io_u->list);
io_u->file = NULL;
list_del(&io_u->list);