[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-block] [PATCH] block/iscsi: add support for reque
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [Qemu-block] [PATCH] block/iscsi: add support for request timeouts |
Date: |
Thu, 25 Jun 2015 13:58:18 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Jun 16, 2015 at 01:45:07PM +0200, Peter Lieven wrote:
> libiscsi starting with 1.15 will properly support timeout of iscsi
> commands. The default will remain no timeout, but this can
> be changed via cmdline parameters, e.g.:
>
> qemu -iscsi timeout=30 -drive file=iscsi://...
>
> If a timeout occurs a reconnect is scheduled and the timed out command
> will be requeued for processing after a successful reconnect.
>
> The required API call iscsi_set_timeout is present since libiscsi
> 1.10 which was released in October 2013. However, due to some bugs
> in the libiscsi code the use is not recommended before version 1.15.
>
> Please note that this patch bumps the libiscsi requirement to 1.10
> to have all function and macros defined. The patch fixes also a
> off-by-one error in the NOP timeout calculation which was fixed
> while touching these code parts.
>
> Signed-off-by: Peter Lieven <address@hidden>
> ---
> block/iscsi.c | 87
> ++++++++++++++++++++++++++++++++++++++++++---------------
> configure | 6 ++--
> qemu-options.hx | 4 +++
> 3 files changed, 72 insertions(+), 25 deletions(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
pgpPUJquPc_vm.pgp
Description: PGP signature