]> 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)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:04 +0000 (10:20 +0200)
commit38d8dfa193e9a45f0f08b06aab2ba2a94f40a041
tree3c7a9183a45ebd11f4c16f7900c5b13e8684abcc
parent20be49e47e82f1b9fdc33810e1c4d7121871eafa
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>
hw/ide/core.c