gluster: io_u->error should be a positive error value
authorJens Axboe <axboe@fb.com>
Mon, 5 Jan 2015 15:50:26 +0000 (08:50 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 5 Jan 2015 15:50:26 +0000 (08:50 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/glusterfs_async.c

index 8283f8be7f6bee13c253bc84d67f4f49b2e01f5e..7c2c1398386707cd7a8f477df90561eb45bbadc3 100644 (file)
@@ -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");