diff options
author | Max Reitz <mreitz@redhat.com> | 2016-04-20 00:59:47 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-04-20 16:52:55 +0200 |
commit | 9c83625bdd3c1900d304058ece152040ef5d1ead (patch) | |
tree | 5e9e0b0ac950fd5c988096721ba1567cc752e38a /ui/keymaps.c | |
parent | 4113b0532da6c448f8e458b413ebde035234d0ea (diff) |
block/mirror: Revive dead yielding code
mirror_iteration() is supposed to wait if the current chunk is subject
to a still in-flight mirroring operation. However, it mixed checking
this conflict situation with checking the dirty status of a chunk. A
simplification for the latter condition (the first chunk encountered is
always dirty) led to neglecting the former: We just skip the first chunk
and thus never test whether it conflicts with an in-flight operation.
To fix this, pull out the code which waits for in-flight operations on
the first chunk of the range to be mirrored to settle.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'ui/keymaps.c')
0 files changed, 0 insertions, 0 deletions