qcow2: Don't hold cache references across yield
commit7242411460eb1cd6e850d51ef15ae734b59e2edf
authorKevin Wolf <kwolf@redhat.com>
Tue, 24 Apr 2012 14:10:56 +0000 (24 16:10 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 2 May 2012 16:39:39 +0000 (2 18:39 +0200)
treed5acfc6b7fbf70d5f5f77b3831a9513883d1deba
parent60651f901ae5717ae1a7a30f32230c9b3fdbf60b
qcow2: Don't hold cache references across yield

If cache references are held while the coroutine has yielded, the cache
may get used up and abort() when it can't find a free entry.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c