blockdev: no need to drain+flush in hmp_drive_del
PATCH 1/1 blockdev: no need to drain+flush in hmp_drive_del
bdrv_close already does that, and in fact hmp_drive_del would need another drain after the flush (which bdrv_close does). So remove the duplication.
--- blockdev.c | 3 --- 1 file changed, 3 deletions(-)
blockdev.c +0 -3
@@ -2143,9 +2143,6 @@ int hmp_drive_del(Monitor *mon, const QDict *qdict, QObject **ret_data)return -1 ; } -/* quiesce block driver; prevent further io */ -bdrv_drain_all (); -bdrv_flush (bs);bdrv_close (bs);/* if we have a device attached to this BlockDriverState
Signature · 1 line
2.4.1
Quoted 5 lines · Paolo Bonzini
bdrv_closealready does that, and in facthmp_drive_delwould need another drain after the flush (whichbdrv_closedoes). So remove the duplication.Signed-off-by Paolo Bonzini <[email protected]>
Berto
----- Original Message -----
Quoted 5 lines
bdrv_closealready does that, and in facthmp_drive_delwould need another drain after the flush (whichbdrv_closedoes). So remove the duplication.Signed-off-by Paolo Bonzini <[email protected]>
Quoted 24 lines
--- blockdev.c | 3 --- 1 file changed, 3 deletions(-)blockdev.c +0
-3@@ -2143,9 +2143,6 @@ int hmp_drive_del(Monitor *mon, const QDict *qdict, QObject **ret_data)return -1 ; } -/* quiesce block driver; prevent further io */ -bdrv_drain_all (); -bdrv_flush (bs);bdrv_close (bs);/* if we have a device attached to this BlockDriverState--
2.4.1
Quoted 8 lines · Paolo Bonzini
bdrv_closealready does that, and in facthmp_drive_delwould need another drain after the flush (whichbdrv_closedoes). So remove the duplication.Signed-off-by Paolo Bonzini <[email protected]>--- blockdev.c | 3 --- 1 file changed, 3 deletions(-)
Ping?
Paolo
Quoted 24 lines · Paolo Bonzini
bdrv_closealready does that, and in facthmp_drive_delwould need another drain after the flush (whichbdrv_closedoes). So remove the duplication.Signed-off-by Paolo Bonzini <[email protected]>--- blockdev.c | 3 --- 1 file changed, 3 deletions(-)blockdev.c +0
-3@@ -2143,9 +2143,6 @@ int hmp_drive_del(Monitor *mon, const QDict *qdict, QObject **ret_data)return -1 ; } -/* quiesce block driver; prevent further io */ -bdrv_drain_all (); -bdrv_flush (bs);bdrv_close (bs);/* if we have a device attached to this BlockDriverState
Stefan Hajnoczi
AppliedQuoted 8 lines · Paolo Bonzini
bdrv_closealready does that, and in facthmp_drive_delwould need another drain after the flush (whichbdrv_closedoes). So remove the duplication.Signed-off-by Paolo Bonzini <[email protected]>--- blockdev.c | 3 --- 1 file changed, 3 deletions(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan