From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiioC-0001mG-Dx for qemu-devel@nongnu.org; Thu, 16 Apr 2015 08:22:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yiio8-0006CQ-EM for qemu-devel@nongnu.org; Thu, 16 Apr 2015 08:22:16 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:51728 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yiio8-0006Bj-0v for qemu-devel@nongnu.org; Thu, 16 Apr 2015 08:22:12 -0400 From: Peter Lieven Date: Thu, 16 Apr 2015 14:18:46 +0200 Message-Id: <1429186730-3866-7-git-send-email-pl@kamp.de> In-Reply-To: <1429186730-3866-1-git-send-email-pl@kamp.de> References: <1429186730-3866-1-git-send-email-pl@kamp.de> Subject: [Qemu-devel] [PATCH for-2.4 06/10] block/iscsi: increase retry count List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, Peter Lieven , ronniesahlberg@gmail.com, qemu-block@nongnu.org The idea is that a command is retried in a BUSY condition up a time of approx. 60 seconds before it is failed. This should be far higher than any command timeout in the guest. Signed-off-by: Peter Lieven --- block/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/iscsi.c b/block/iscsi.c index 7fb04d7..a4902ea 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -102,7 +102,7 @@ typedef struct IscsiAIOCB { #define NOP_INTERVAL 5000 #define MAX_NOP_FAILURES 3 #define ISCSI_CMD_RETRIES ARRAY_SIZE(iscsi_retry_times) -static const unsigned iscsi_retry_times[] = {8, 32, 128, 512, 2048}; +static const unsigned iscsi_retry_times[] = {8, 32, 128, 512, 2048, 8192, 32768}; /* this threshold is a trade-off knob to choose between * the potential additional overhead of an extra GET_LBA_STATUS request -- 1.9.1