diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-03-22 14:35:58 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-06-18 15:03:25 +0200 |
commit | d30b8e64b7b282da785307504ada59efa8096fb1 (patch) | |
tree | 90efda3f69182288751288ef62431b28c59e0988 /tests/test-bdrv-drain.c | |
parent | 89bd030533e3592ca0a995450dcfc5d53e459e20 (diff) |
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>
Diffstat (limited to 'tests/test-bdrv-drain.c')
0 files changed, 0 insertions, 0 deletions