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/sg.c b/engines/sg.c index d320070..8d086bf 100644 --- a/engines/sg.c +++ b/engines/sg.c
@@ -261,7 +261,12 @@ io_u->error = EIO; } - return io_u->error; + if (io_u->error) { + td_verror(td, io_u->error); + return io_u->error; + } + + return 0; } static struct io_u *fio_sgio_event(struct thread_data *td, int event)