diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-11-08 17:02:56 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-11-21 09:16:56 -0600 |
commit | 33656af70230d5ccebe29e2f3bee38afe17db9b2 (patch) | |
tree | aa8ff2f779a32f571a075694e4f06d46a1cd518f /rwhandler.h | |
parent | 4dcafbb1eba2ee201ec86027982659b669f99c70 (diff) |
block migration: do not submit multiple AIOs for same sector
Block migration can submit multiple AIO reads for the same sector/chunk, but
completion of such reads can happen out of order:
migration guest
- get_dirty(N)
- aio_read(N)
- clear_dirty(N)
write(N)
set_dirty(N)
- get_dirty(N)
- aio_read(N)
If the first aio_read completes after the second, stale data will be
migrated to the destination.
Fix by not allowing multiple AIOs inflight for the same sector.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'rwhandler.h')
0 files changed, 0 insertions, 0 deletions