search for: bdrv_detach_dev

Displaying 1 result from an estimated 1 matches for "bdrv_detach_dev".

2012 Feb 15
0
[PATCH] xen: detach the blkdev before bdrv_delete
..._disk.c index 68fa36a..bf06fc1 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -726,6 +726,7 @@ static void blk_disconnect(struct XenDevice *xendev) if (!blkdev->dinfo) { /* close/delete only if we created it ourself */ bdrv_close(blkdev->bs); + bdrv_detach_dev(blkdev->bs, blkdev); bdrv_delete(blkdev->bs); } blkdev->bs = NULL; -- 1.7.2.5