Re: [Qemu-devel] [PATCH] qcow2: Fix in-flight list after qcow2_cache_put failure

2011-05-25 Thread Christoph Hellwig
On Tue, May 24, 2011 at 04:47:19PM +0200, Kevin Wolf wrote: > If qcow2_cache_put returns an error during cluster allocation and the > allocation fails, it must be removed from the list of in-flight allocations. > Otherwise we'd get a loop in the list when the ACB is used for the next > allocation.

[Qemu-devel] [PATCH] qcow2: Fix in-flight list after qcow2_cache_put failure

2011-05-24 Thread Kevin Wolf
If qcow2_cache_put returns an error during cluster allocation and the allocation fails, it must be removed from the list of in-flight allocations. Otherwise we'd get a loop in the list when the ACB is used for the next allocation. Luckily, this qcow2_cache_put shouldn't fail anyway because the L2