From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwrhf-0004bh-F9 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 07:37:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwrhY-00049E-GZ for qemu-devel@nongnu.org; Tue, 17 Jun 2014 07:37:27 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:58870 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwrhY-00048m-4k for qemu-devel@nongnu.org; Tue, 17 Jun 2014 07:37:20 -0400 Message-ID: <53A02867.7090400@kamp.de> Date: Tue, 17 Jun 2014 13:37:11 +0200 From: Peter Lieven MIME-Version: 1.0 References: <1401889659-24035-1-git-send-email-pl@kamp.de> <53903469.8070902@msgid.tls.msk.ru> <539FDCAD.5060006@kamp.de> <53A02351.8060900@redhat.com> In-Reply-To: <53A02351.8060900@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] block/iscsi: use 16 byte CDBs only when necessary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Michael Tokarev , ronnie sahlberg Cc: Kevin Wolf , qemu-devel , Stefan Hajnoczi On 17.06.2014 13:15, Paolo Bonzini wrote: > Il 17/06/2014 08:14, Peter Lieven ha scritto: >>> >> >> BTW, while debugging a case with a bigger storage supplier I found >> that open-iscsi seems to do exactly this undeterministic behaviour. >> I have a 3TB LUN. If I access < 2TB sectors it uses READ10/WRITE10 and >> if I go beyond 2TB it changes to READ16/WRITE16. > > Isn't that exactly what your latest patch does for >64K sector writes? :) Not exactly, we choose the default by checking the LUN size. 10 Byte for < 2TB and 16 Byte otherwise. My latest patch makes an exception if a request is bigger than 64K sectors and switches to 16 Byte requests. These would otherwise end in an I/O error. open-iscsi uses 10 Byte requests for any sector offset smaller than 2^32 regardless of the LUN size and 16 Byte requests otherwise. Peter > > It's the reason why I haven't merged that patch yet. > > Paolo -- Mit freundlichen Grüßen Peter Lieven ........................................................... KAMP Netzwerkdienste GmbH Vestische Str. 89-91 | 46117 Oberhausen Tel: +49 (0) 208.89 402-50 | Fax: +49 (0) 208.89 402-40 pl@kamp.de | http://www.kamp.de Geschäftsführer: Heiner Lante | Michael Lante Amtsgericht Duisburg | HRB Nr. 12154 USt-Id-Nr.: DE 120607556 ...........................................................