[Qemu-devel] [PATCH] ide: Fix ide_dma_cancel

2010-05-05 Thread Kevin Wolf
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

Re: [Qemu-devel] [PATCH] ide: Fix ide_dma_cancel

2010-05-05 Thread Christoph Hellwig
On Wed, May 05, 2010 at 11:54:56AM +0200, Kevin Wolf wrote: 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