commit | 473c7f0255920bcaf37411990a3725898772817f | [log] [tgz] |
---|---|---|
author | Stefan Priebe <s.priebe@profihost.ag> | Fri Nov 30 09:55:46 2012 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Dec 11 11:05:11 2012 +0100 |
tree | 9e6254bdbf1ad891fd2a786fdee9b4f5b507e655 | |
parent | 791bfa35ee00ca10b13bedfb048ffda385b151c7 [diff] |
rbd: Fix race between aio completition and aio cancel This one fixes a race which qemu had also in iscsi block driver between cancellation and io completition. qemu_rbd_aio_cancel was not synchronously waiting for the end of the command. To archieve this it introduces a new status flag which uses -EINPROGRESS. Signed-off-by: Stefan Priebe <s.priebe@profihost.ag> Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>