Revert "IDE: Do not flush empty CDROM drives"
commit13471a40c13bc899c73f1879681da29da292547e
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 16 Feb 2018 16:50:15 +0000 (16 16:50 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (2 18:39 +0100)
tree473b22ebd0612e301b5746d61cb77b9669b0e586
parentad0df3e0fdac1d28e99ad29b99540d9f125e7ccf
Revert "IDE: Do not flush empty CDROM drives"

This reverts commit 4da97120d51a4383aa96d741a2b837f8c4bbcd0b.

blk_aio_flush() now handles the blk->root == NULL case, so we no longer
need this workaround.

Cc: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c