14 lines
648 B
Diff
14 lines
648 B
Diff
|
Index: xen-4.1.2-testing/tools/blktap/drivers/blktapctrl.c
|
||
|
===================================================================
|
||
|
--- xen-4.1.2-testing.orig/tools/blktap/drivers/blktapctrl.c
|
||
|
+++ xen-4.1.2-testing/tools/blktap/drivers/blktapctrl.c
|
||
|
@@ -280,7 +280,7 @@ static int del_disktype(blkif_t *blkif)
|
||
|
* qemu-dm instance. We may close the file handle only if there is
|
||
|
* no other disk left for this domain.
|
||
|
*/
|
||
|
- if (dtypes[type]->use_ioemu)
|
||
|
+ if (dtypes[type]->use_ioemu && dtypes[type]->idnum != DISK_TYPE_AIO)
|
||
|
return !qemu_instance_has_disks(blkif->tappid);
|
||
|
|
||
|
/* Caller should close() if no single controller, or list is empty. */
|