From: Jens Axboe Date: Mon, 5 Jan 2015 15:50:26 +0000 (-0700) Subject: gluster: io_u->error should be a positive error value X-Git-Tag: fio-2.2.5~24 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=97068f80045bc8ae67063fad3192e9db85054511 gluster: io_u->error should be a positive error value Signed-off-by: Jens Axboe --- diff --git a/engines/glusterfs_async.c b/engines/glusterfs_async.c index 8283f8be..7c2c1398 100644 --- a/engines/glusterfs_async.c +++ b/engines/glusterfs_async.c @@ -122,7 +122,7 @@ static int fio_gf_async_queue(struct thread_data fio_unused * td, else if (io_u->ddir == DDIR_SYNC) r = glfs_fsync_async(g->fd, gf_async_cb, io_u); else - r = -EINVAL; + r = EINVAL; if (r) { log_err("glfs queue failed.\n");