direct-io.hg

changeset 14416:d64c0af015dd

[TAPDISK] unlock sector on error case
Signed-off-by: Jake Wires <jwires@xensource.com>
author Jake Wires <jwires@xensource.com>
date Fri Mar 16 15:23:26 2007 -0700 (2007-03-16)
parents 62754c2fdcfa
children 519d32076d48
files tools/blktap/drivers/block-qcow.c
line diff
     1.1 --- a/tools/blktap/drivers/block-qcow.c	Fri Mar 16 18:59:55 2007 +0000
     1.2 +++ b/tools/blktap/drivers/block-qcow.c	Fri Mar 16 15:23:26 2007 -0700
     1.3 @@ -1057,6 +1057,7 @@ int tdqcow_queue_write(struct disk_drive
     1.4  						    index_in_cluster+n);
     1.5  		if (!cluster_offset) {
     1.6  			DPRINTF("Ooops, no write cluster offset!\n");
     1.7 +			aio_unlock(s, sector);
     1.8  			return cb(dd, -EIO, sector, nb_sectors, id, private);
     1.9  		}
    1.10