Re: [Qemu-devel] [RFC][PATCH] iscsi: retry read, write, flush and unmap on unit attention check conditions

2013-02-21 Thread Peter Lieven
Am 18.02.2013 um 17:14 schrieb Paolo Bonzini pbonz...@redhat.com: Il 18/02/2013 16:58, Peter Lieven ha scritto: +acb = qemu_aio_get(iscsi_aiocb_info, bs, cb, opaque); + +acb-iscsilun = iscsilun; +acb-retries = ISCSI_CMD_RETRIES; +acb-nb_sectors = nb_sectors; +

Re: [Qemu-devel] [RFC][PATCH] iscsi: retry read, write, flush and unmap on unit attention check conditions

2013-02-19 Thread Peter Lieven
Am 18.02.2013 um 17:14 schrieb Paolo Bonzini pbonz...@redhat.com: Il 18/02/2013 16:58, Peter Lieven ha scritto: +acb = qemu_aio_get(iscsi_aiocb_info, bs, cb, opaque); + +acb-iscsilun = iscsilun; +acb-retries = ISCSI_CMD_RETRIES; +acb-nb_sectors = nb_sectors; +

[Qemu-devel] [RFC][PATCH] iscsi: retry read, write, flush and unmap on unit attention check conditions

2013-02-18 Thread Peter Lieven
the target might return a unit attention check condition status for various reasons (e.g. bus reset, capacity change, thin-provisioning info etc.). currently all these informative status responses lead to an I/O error which is populated to the guest. this patch introduces a retry mechanism to

Re: [Qemu-devel] [RFC][PATCH] iscsi: retry read, write, flush and unmap on unit attention check conditions

2013-02-18 Thread Paolo Bonzini
Il 18/02/2013 16:58, Peter Lieven ha scritto: +acb = qemu_aio_get(iscsi_aiocb_info, bs, cb, opaque); + +acb-iscsilun = iscsilun; +acb-retries = ISCSI_CMD_RETRIES; +acb-nb_sectors = nb_sectors; +acb-sector_num = sector_num; +acb-retries = ISCSI_CMD_RETRIES;