From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwmew-0000iY-QG for qemu-devel@nongnu.org; Tue, 17 Jun 2014 02:14:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wwmen-0000T2-LK for qemu-devel@nongnu.org; Tue, 17 Jun 2014 02:14:18 -0400 Received: from mx-v6.kamp.de ([2a02:248:0:51::16]:59361 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwmen-0000So-B0 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 02:14:09 -0400 Message-ID: <539FDCAD.5060006@kamp.de> Date: Tue, 17 Jun 2014 08:14:05 +0200 From: Peter Lieven MIME-Version: 1.0 References: <1401889659-24035-1-git-send-email-pl@kamp.de> <53903469.8070902@msgid.tls.msk.ru> In-Reply-To: <53903469.8070902@msgid.tls.msk.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Michael Tokarev , ronnie sahlberg Cc: Kevin Wolf , Paolo Bonzini , qemu-devel , Stefan Hajnoczi On 05.06.2014 11:12, Michael Tokarev wrote: > 04.06.2014 18:00, ronnie sahlberg wrote: >> That would mean you get to use the 10 version of the cdb even for very >> large devices (as long as the IO is for blocks at the beginning of the >> device) and thus provide partial avoidance of this issue for those >> large devices. > That may make some bugs "ghosty", so to say. Ie, if there's a bug in/with > 16 version of a command, you'll hit it only when you actually try to access > a "far" area of a drive. Which means you're unlikely to hit it while trying > to reproduce in a clean environment, even after using a large device. Or, > the bug will be triggered at random, since data placement on the filesystem > is effectively (from user PoV) random. > > To my taste it is better to make it a bit more deterministic. 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. Peter