qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH v7 17/24] blockdev: Use blk_remove_bs() in do_drive_


From: Max Reitz
Subject: [Qemu-block] [PATCH v7 17/24] blockdev: Use blk_remove_bs() in do_drive_del()
Date: Mon, 9 Nov 2015 23:39:26 +0100

Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
---
 blockdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blockdev.c b/blockdev.c
index 3185808..a70a684 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -2509,7 +2509,7 @@ void hmp_drive_del(Monitor *mon, const QDict *qdict)
             return;
         }
 
-        bdrv_close(bs);
+        blk_remove_bs(blk);
     }
 
     /* if we have a device attached to this BlockDriverState
-- 
2.6.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]