Received: from eggs.gnu.org ([2001:4830:134:3::10]:59080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsCJF-0007S8-QE for qemu-devel@nongnu.org; Wed, 04 Jun 2014 10:36:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsCJ9-0005Rk-Ux for qemu-devel@nongnu.org; Wed, 04 Jun 2014 10:36:57 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:35233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsCJ9-0005RL-N0 for qemu-devel@nongnu.org; Wed, 04 Jun 2014 10:36:51 -0400 Received: by mail-wi0-f179.google.com with SMTP id bs8so1613455wib.0 for ; Wed, 04 Jun 2014 07:36:50 -0700 (PDT) Date: Wed, 4 Jun 2014 16:36:45 +0200 From: Stefan Hajnoczi Message-ID: <20140604143645.GK11073@stefanha-thinkpad.redhat.com> References: <1401485807-25405-1-git-send-email-pl@kamp.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1401485807-25405-1-git-send-email-pl@kamp.de> Subject: Re: [Qemu-devel] [PATCHv2] block/iscsi: handle BUSY condition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, famz@redhat.com, ronniesahlberg@gmail.com, qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com On Fri, May 30, 2014 at 11:36:47PM +0200, Peter Lieven wrote: > this patch adds handling of BUSY status reponse from an iSCSI target. > Currently, we fail with -EIO in case of SCSI_STATUS_BUSY while the > obvious reaction would be to retry the operation after some time. > The retry time is randomly choosen from a range with exponential > growth increasing with each retry. > > This patch includes most of the changes by a an upcoming patch > from Stefan Hajnoczi: > > iscsi: implement .bdrv_detach/attach_aio_context() > > because I also need the reference to the aio_context for > the retry timer to work. I included the changes to maintain > better mergeability. You can now rebase on git://github.com/stefanha/qemu.git block. I think this will make the patch easier to review because it contains the dependency you squashed in. Stefan