commit | 95bcd815e5ce55d6cdd8eb83bda5ee411f37bdc9 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Sun Feb 11 01:01:57 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Sun Feb 11 01:01:57 2007 +0100 |
tree | ac12fc9c484eb386a580c7d8107898666d3d742f | |
parent | 6d663077379b40e1ec6e2321fe8a731087777d32 [diff] [blame] |
[PATCH] Move td_verror() into io_ops->queue() hook Shows where the error occured, not where it got noticed. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/posixaio.c b/engines/posixaio.c index 71601fd..2fc56cd 100644 --- a/engines/posixaio.c +++ b/engines/posixaio.c
@@ -151,8 +151,10 @@ else ret = aio_fsync(O_SYNC, aiocb); - if (ret) + if (ret) { io_u->error = errno; + td_verror(td, io_u->error); + } return io_u->error; }