Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Apr 20, 2017

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit b94d4d75a2e474561dcda8ee852cd5e67dde884e:

Merge branch 'pull-2' of https://github.com/dmonakhov/fio (2017-04-10 11:41:09 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to d7658cedd1f31d1285f1f1e1cfe42fabb7cd6c8f:

Return non-negtive error in order to print right error msg (2017-04-19 20:34:19 +0800)

----------------------------------------------------------------
mychoxin (1):
Return non-negtive error in order to print right error msg

 engines/rbd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

Diff of recent changes:

engines/rbd.c +2 -2
index 829e41a..7433879 100644
@@ -290,7 +290,7 @@ static void _fio_rbd_finish_aiocb(rbd_completion_t comp, void *data)
 	 */
 	ret = rbd_aio_get_return_value(fri->completion);
 	if (ret < 0) {
-		io_u->error = ret;
+		io_u->error = -ret;
 		io_u->resid = io_u->xfer_buflen;
 	} else
 		io_u->error = 0;
@@ -524,7 +524,7 @@ static int fio_rbd_queue(struct thread_data *td, struct io_u *io_u)
 failed_comp:
 	rbd_aio_release(fri->completion);
 failed:
-	io_u->error = r;
+	io_u->error = -r;
 	td_verror(td, io_u->error, "xfer");
 	return FIO_Q_COMPLETED;
 }