Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3DsL-0006vD-Me for qemu-devel@nongnu.org; Sat, 17 Apr 2010 15:40:21 -0400 Received: from [140.186.70.92] (port=38357 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3DsK-0006uS-1X for qemu-devel@nongnu.org; Sat, 17 Apr 2010 15:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3DsI-0007dk-E7 for qemu-devel@nongnu.org; Sat, 17 Apr 2010 15:40:19 -0400 Received: from verein.lst.de ([213.95.11.210]:59184) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3DsI-0007cm-1l for qemu-devel@nongnu.org; Sat, 17 Apr 2010 15:40:18 -0400 Date: Sat, 17 Apr 2010 21:40:09 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] Guest latency issues due to bdrv_check_byte_request Message-ID: <20100417194009.GA13862@lst.de> References: <4BC757DD.8060804@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Jan Kiszka , qemu-devel On Sat, Apr 17, 2010 at 08:05:45PM +0100, Stefan Hajnoczi wrote: > I think there are still a lot of lseeks left because > raw-posix.c:raw_pread_aligned() is implemented using lseek+read > instead of pread. Does anyone know the reasoning there or could > pread() be used? There's no good reason for it except maybe compatiblity to really olh hosts that do not have pread/pwrite. But given that AIO support is now mandator and the AIO code uses pread/pwritev exclusively we would have noticed if that's the case by now.