OSDN Git Service

qcow2: Invalidate cache after failed read
authorKevin Wolf <kwolf@redhat.com>
Thu, 28 Oct 2010 14:16:00 +0000 (16:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 4 Nov 2010 12:54:37 +0000 (13:54 +0100)
commit1c02e2a17104fe7fc11893125864dc0daf1e6d5b
tree856838c21e8b45c9305b642d7b6e9339bc634600
parent4a4111851fa75bc91028a26eb75dcdd136d9032d
qcow2: Invalidate cache after failed read

The cache content may be destroyed after a failed read, better not use it any
more.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qcow2-cluster.c
block/qcow2-refcount.c