[PATCH] libaio sign error
authorJens Axboe <jens.axboe@oracle.com>
Fri, 27 Oct 2006 08:45:12 +0000 (10:45 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 27 Oct 2006 08:45:12 +0000 (10:45 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/fio-engine-libaio.c

index daee65930b956984991ee0fce9482bff0e19310b..1848dcc4398164d3c9c241377709e538b7c97435 100644 (file)
@@ -57,7 +57,10 @@ static int fio_libaio_getevents(struct thread_data *td, int min, int max,
                        break;
        } while (1);
 
-       return (int) -r;
+       if (r < 0)
+               r = -r;
+
+       return (int) r;
 }
 
 static int fio_libaio_queue(struct thread_data *td, struct io_u *io_u)