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