rbd: check return values when scheduling aio
commit51a135287ae6be62d54d7ac2a99e647cbab1a828
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 26 May 2011 23:07:33 +0000 (26 16:07 -0700)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Jun 2011 09:56:40 +0000 (8 11:56 +0200)
treeccebd9f2b52967ccaf22e27a019312adac7178a9
parentfab5cf592c36a00124018604abc24f4000e07690
rbd: check return values when scheduling aio

If scheduling fails, the number of outstanding I/Os must be correct,
or there will be a hang when waiting for everything to be flushed.

Reviewed-by: Christian Brunner <chb@muc.de>
Reported-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c