fix a weird check of the return value of aio_cancel.
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 11 Jun 2010 07:21:33 +0000 (09:21 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 11 Jun 2010 07:21:33 +0000 (09:21 +0200)
commit2faf9ec84cc329304bd0dcbf928184e11e550108
tree1428c91ae9e859e792f8824a2e394e8836b10eaf
parentaa58d2520204f5ae12291fae0289a90fb03dc587
fix a weird check of the return value of aio_cancel.

i don't know what this 1 means in the first place but at least
it isn't portable.  instead, check if the i/o has already
completed. (AIO_ALLDONE)

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
engines/posixaio.c