Re: [PATCH for-5.1] block: fix bdrv_aio_cancel() for ENOMEDIUM requests

2020-07-21 Thread Max Reitz
On 20.07.20 12:01, Stefan Hajnoczi wrote: > bdrv_aio_cancel() calls aio_poll() on the AioContext for the given I/O > request until it has completed. ENOMEDIUM requests are special because > there is no BlockDriverState when the drive has no medium! > > Define a .get_aio_context() function for

[PATCH for-5.1] block: fix bdrv_aio_cancel() for ENOMEDIUM requests

2020-07-20 Thread Stefan Hajnoczi
bdrv_aio_cancel() calls aio_poll() on the AioContext for the given I/O request until it has completed. ENOMEDIUM requests are special because there is no BlockDriverState when the drive has no medium! Define a .get_aio_context() function for BlkAioEmAIOCB requests so that bdrv_aio_cancel() can