diff options
author | Max Reitz <mreitz@redhat.com> | 2016-01-29 16:36:09 +0100 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-02-02 17:50:46 +0100 |
commit | 938abd4325951f94e87765b7daea61bf0bf71a5e (patch) | |
tree | ff329468e5252975e6cff923286fcf0cef129251 | |
parent | 13855c6b9fa7f9d9e6d1f90377be0f678671073a (diff) |
blockdev: Use blk_remove_bs() in do_drive_del()
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | blockdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index 1044a6acad..09d4621cd2 100644 --- a/blockdev.c +++ b/blockdev.c @@ -2792,7 +2792,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 |