]> git.proxmox.com Git - qemu.git/blobdiff - blockdev.c
iscsi: reorganize iscsi_readcapacity_sync
[qemu.git] / blockdev.c
index 7c9d8dd0acfe7f136f4601cebad92157cee7d5ae..625d04123de1298eafd0498c56043efe52f6d3cc 100644 (file)
@@ -1108,6 +1108,10 @@ int do_drive_del(Monitor *mon, const QDict *qdict, QObject **ret_data)
      */
     if (bdrv_get_attached_dev(bs)) {
         bdrv_make_anon(bs);
+
+        /* Further I/O must not pause the guest */
+        bdrv_set_on_error(bs, BLOCKDEV_ON_ERROR_REPORT,
+                          BLOCKDEV_ON_ERROR_REPORT);
     } else {
         drive_uninit(drive_get_by_blockdev(bs));
     }