Re: [Qemu-devel] [PATCH 1/2] block/io: allow AIOCB without callback

2015-08-31 Thread Peter Lieven
Am 21.08.2015 um 08:12 schrieb Eric Blake: On 08/20/2015 01:14 AM, Peter Lieven wrote: If the backend storage is unresponsive and we cancel a request due to a timeout we cannot immediately destroy the AIOCB because the storage might complete the original request laster if it is responsive again.

Re: [Qemu-devel] [PATCH 1/2] block/io: allow AIOCB without callback

2015-08-20 Thread Eric Blake
On 08/20/2015 01:14 AM, Peter Lieven wrote: > If the backend storage is unresponsive and we cancel a request due to > a timeout we cannot immediately destroy the AIOCB because the storage > might complete the original request laster if it is responsive again. s/laster/later/ > For this purpose al

[Qemu-devel] [PATCH 1/2] block/io: allow AIOCB without callback

2015-08-20 Thread Peter Lieven
If the backend storage is unresponsive and we cancel a request due to a timeout we cannot immediately destroy the AIOCB because the storage might complete the original request laster if it is responsive again. For this purpose allow to set the callback to NULL and ignore it in this case. Signed-of