qcow2: Remove request from in-flight list after error
authorKevin Wolf <kwolf@redhat.com>
Tue, 6 Apr 2010 13:30:14 +0000 (15:30 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 9 Apr 2010 23:25:30 +0000 (01:25 +0200)
commita8de64a267140b52e495a7c9db3f26b748407c3b
tree52e9d31619a5cf48ce50e174d301ea1a5d93357e
parent9b79432ba316763648896562196e8aa208cfb470
qcow2: Remove request from in-flight list after error

If we complete a request with a failure we need to remove it from the list of
requests that are in flight. If we don't do it, the next time the same AIOCB is
used for a cluster allocation it will create a loop in the list and qemu will
hang in an endless loop.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
block/qcow2-cluster.c
block/qcow2.c