OSDN Git Service

block: Remove bdrv_drain_recurse()
authorKevin Wolf <kwolf@redhat.com>
Thu, 22 Mar 2018 13:35:58 +0000 (14:35 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Jun 2018 13:03:25 +0000 (15:03 +0200)
commitd30b8e64b7b282da785307504ada59efa8096fb1
tree90efda3f69182288751288ef62431b28c59e0988
parent89bd030533e3592ca0a995450dcfc5d53e459e20
block: Remove bdrv_drain_recurse()

For bdrv_drain(), recursively waiting for child node requests is
pointless because we didn't quiesce their parents, so new requests could
come in anyway. Letting the function work only on a single node makes it
more consistent.

For subtree drains and drain_all, we already have the recursion in
bdrv_do_drained_begin(), so the extra recursion doesn't add anything
either.

Remove the useless code.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c