Received: from eggs.gnu.org ([2001:4830:134:3::10]:42928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z86jc-0004M1-CV for qemu-devel@nongnu.org; Thu, 25 Jun 2015 08:58:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z86jb-0000Hw-9t for qemu-devel@nongnu.org; Thu, 25 Jun 2015 08:58:28 -0400 Date: Thu, 25 Jun 2015 13:58:18 +0100 From: Stefan Hajnoczi Message-ID: <20150625125818.GF4419@stefanha-thinkpad.redhat.com> References: <1434455107-19328-1-git-send-email-pl@kamp.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2FkSFaIQeDFoAt0B" Content-Disposition: inline In-Reply-To: <1434455107-19328-1-git-send-email-pl@kamp.de> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] block/iscsi: add support for request timeouts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, pbonzini@redhat.com, ronniesahlberg@gmail.com, qemu-devel@nongnu.org, qemu-block@nongnu.org --2FkSFaIQeDFoAt0B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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.: >=20 > qemu -iscsi timeout=3D30 -drive file=3Discsi://... >=20 > If a timeout occurs a reconnect is scheduled and the timed out command > will be requeued for processing after a successful reconnect. >=20 > 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. >=20 > 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. >=20 > Signed-off-by: Peter Lieven > --- > 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 --2FkSFaIQeDFoAt0B Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVi/rqAAoJEJykq7OBq3PIemEIALjlR3FDgGd2sWLCRyHePI51 qQc/PI9r9jEc84aNuesA2An0Hl0edMe4OT1f5yZvI3erVS+7siuRs+dcN/nd4Dtj U4I94fDnK0RaJQrIH+ooSCwQe8+5HHT7XBnpJpSddAeazPQzYzXmpbYmQflKbuU6 e8+5rWia4ojPnlQBhs7YMAoq+Ay5rt9yPSCd5wPhycURvLA4Bz9heV6DsopIdxfW n9rtAvJIPp7cDeocFacKryFfCcnp9hDwwO1yN3Yo5zxdggPy/CYWqbOiKQeYbbRZ DSc636EK6WhI4aDgxEBjwVLrT3nK4kJz4qjE+fuUD/E/ea9WOPC3QJBhvzIrFKg= =34c3 -----END PGP SIGNATURE----- --2FkSFaIQeDFoAt0B--