« Previous | Next » 

Revision 9e2a3701

ID9e2a3701a1fcfec0316b9dc1a6cd62869de5542c

Added by Kevin Wolf almost 13 years ago

qcow2: Fix in-flight list after qcow2_cache_put failure

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 table is
only read, so that qcow2_cache_put doesn't even involve I/O.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Christoph Hellwig <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences