]> git.proxmox.com Git - qemu.git/commit
ide: Fix ide_dma_cancel
authorKevin Wolf <kwolf@redhat.com>
Tue, 4 May 2010 14:35:24 +0000 (16:35 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 16:36:09 +0000 (18:36 +0200)
commitdf631629b1a80bb890290bdeb3d9fc6c5bedbe5b
treea49b6907d13d138f325691fd850ac2a6afe66fc9
parentaf0269b03607b3a2f653d190c7aebb6da4640046
ide: Fix ide_dma_cancel

When cancelling a request, bdrv_aio_cancel may decide that it waits for
completion of a request rather than for cancellation. IDE therefore can't
abandon its DMA status before calling bdrv_aio_cancel; otherwise the callback
of a completed request would use invalid data.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 38d8dfa193e9a45f0f08b06aab2ba2a94f40a041)
hw/ide/core.c